diff options
author | Andres Rodriguez <[email protected]> | 2019-07-27 09:44:44 -0400 |
---|---|---|
committer | Juan A. Suarez Romero <[email protected]> | 2019-07-31 07:52:52 +0000 |
commit | ad72ce1ad760e2c78692ce7a075b01d62df570ca (patch) | |
tree | 42737649e36b1651ce2455cad3c1709b76ca1bb0 /src/compiler/spirv/vtn_variables.c | |
parent | 23eebaf2ec5d7820e5d4c902fbe8456dcb65d58c (diff) |
radv: fix queries with WAIT_BIT returning VK_NOT_READY
When vkGetQueryPoolResults() is called with VK_QUERY_RESULT_WAIT_BIT
set, the driver is supposed to wait for the query to become available
before returning.
Currently, radv returns once the query is indeed ready, but it returns
VK_NOT_READY. It also fails to populate the results.
The problem is a missing volatile in the secondary check for query
availability. This patch removes the secondary check altogether since it
is redundant with the preceding loop.
This bug was found with an unreleased version of SteamVR.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
(cherry picked from commit 2b71b4e79374ee0243de2d83409adab05ee71c69)
Diffstat (limited to 'src/compiler/spirv/vtn_variables.c')
0 files changed, 0 insertions, 0 deletions