OSDN Git Service

radv/query: handle multiview queries properly. (v3)
authorDave Airlie <airlied@redhat.com>
Thu, 15 Mar 2018 20:23:30 +0000 (20:23 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 19 Mar 2018 19:29:09 +0000 (19:29 +0000)
commit32b4f3c38dc25694437af6f017b45b9658eac3bc
tree62fceed62b762251ad657b707319323225bcebc2
parent4034dc5c72791e010eb64dece4bca542f56cec09
radv/query: handle multiview queries properly. (v3)

For multiview we need to emit a number of sequential queries
depending on the view mask.

This avoids dEQP-VK.multiview.queries.15 waiting forever
on the CPU for query results that are never coming.

We only really want to emit one query,
and the rest should be blank (amdvlk does the same),
so we emit begin/end pairs for all the others except
the first query.

v2: fix tests
v3: split out patch.

Fixes: dEQP-VK.multiview.queries*
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_query.c