mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 18:24:13 +08:00
radv: respect VK_QUERY_RESULT_WAIT_BIT in GetQueryPoolResults
The flag was ignored for VK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT and VK_QUERY_TYPE_PRIMITIVES_GENERATED_EXT. Cc: mesa-stable Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22781>
This commit is contained in:
parent
cdf01be131
commit
34cc37910f
@ -1384,11 +1384,13 @@ radv_GetQueryPoolResults(VkDevice _device, VkQueryPool queryPool, uint32_t first
|
||||
* u64 PrimitiveStorageNeeded;
|
||||
* }
|
||||
*/
|
||||
available = 1;
|
||||
for (int j = 0; j < 4; j++) {
|
||||
if (!(p_atomic_read(src64 + j) & 0x8000000000000000UL))
|
||||
available = 0;
|
||||
}
|
||||
do {
|
||||
available = 1;
|
||||
for (int j = 0; j < 4; j++) {
|
||||
if (!(p_atomic_read(src64 + j) & 0x8000000000000000UL))
|
||||
available = 0;
|
||||
}
|
||||
} while (!available && (flags & VK_QUERY_RESULT_WAIT_BIT));
|
||||
|
||||
if (!available && !(flags & VK_QUERY_RESULT_PARTIAL_BIT))
|
||||
result = VK_NOT_READY;
|
||||
@ -1423,11 +1425,13 @@ radv_GetQueryPoolResults(VkDevice _device, VkQueryPool queryPool, uint32_t first
|
||||
* u64 PrimitiveStorageNeeded;
|
||||
* }
|
||||
*/
|
||||
available = 1;
|
||||
if (!(p_atomic_read(src64 + 0) & 0x8000000000000000UL) ||
|
||||
!(p_atomic_read(src64 + 2) & 0x8000000000000000UL)) {
|
||||
available = 0;
|
||||
}
|
||||
do {
|
||||
available = 1;
|
||||
if (!(p_atomic_read(src64 + 0) & 0x8000000000000000UL) ||
|
||||
!(p_atomic_read(src64 + 2) & 0x8000000000000000UL)) {
|
||||
available = 0;
|
||||
}
|
||||
} while (!available && (flags & VK_QUERY_RESULT_WAIT_BIT));
|
||||
|
||||
if (!available && !(flags & VK_QUERY_RESULT_PARTIAL_BIT))
|
||||
result = VK_NOT_READY;
|
||||
|
Loading…
Reference in New Issue
Block a user