mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 09:20:13 +01:00
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 <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
c9b86cf526
commit
2b71b4e793
1 changed files with 1 additions and 1 deletions
|
|
@ -1129,7 +1129,7 @@ VkResult radv_GetQueryPoolResults(
|
|||
if (flags & VK_QUERY_RESULT_WAIT_BIT) {
|
||||
while (*(volatile uint64_t *)src == TIMESTAMP_NOT_READY)
|
||||
;
|
||||
available = *(uint64_t *)src != TIMESTAMP_NOT_READY;
|
||||
available = true;
|
||||
}
|
||||
|
||||
if (!available && !(flags & VK_QUERY_RESULT_PARTIAL_BIT))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue