radv: Only use PKT3_OCCLUSION_QUERY when it doesn't hang.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 26 Feb 2017 21:26:30 +0000 (22:26 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 27 Feb 2017 00:33:10 +0000 (01:33 +0100)
commit8ea34a98c06af4e3ce00ea665ee07480bcbd199f
treec7dcf7eb53f85beaf26d97687c32582129f30b53
parentbb878db7eb94e48476a920d66174a45da2585e19
radv: Only use PKT3_OCCLUSION_QUERY when it doesn't hang.

PKT3_OCCLUSION_QUERY hangs when used in a nested IB. This only
calls it when in a primary command buffer and we change
GetQueryPoolResults to not need it. CmdCopyQueryPoolResults
still needs it so we break that behavior for secondary command buffers.
However, that would hang already and using an unitialized value is
better than a hang.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Cc: 13.0 17.0 <mesa-stable@lists.freedesktop.org>
src/amd/vulkan/radv_query.c