radv: Fix multiview queries.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 13 May 2018 20:01:44 +0000 (22:01 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 14 May 2018 14:49:06 +0000 (16:49 +0200)
commit62f50df7b79c273a0eb9bf769eded76933bddc3a
tree4e6e81f37d108ebeca8d7632e185eff8be51c9e0
parentf0cdc39b134dfc38f84b0f6dc1eaad86d28d4170
radv: Fix multiview queries.

This moves the extra queries to after the main query ended, instead
of doing it after the begin and hence doing nesting.

We also emit only (view count - 1) extra queries, as the main query
is already there for the first view.

This fixes the CTS occasionally getting stuck in
dEQP-VK.multiview.queries* waiting on results.

Fixes: 32b4f3c38dc "radv/query: handle multiview queries properly. (v3)"
CC: 18.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_query.c