summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_query.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-12-05 11:45:19 +0100
committerSamuel Pitoiset <[email protected]>2018-12-05 13:05:58 +0100
commitc7ada4901aaf192d7aacd51c3ab0ebbbb0ceeb3e (patch)
tree02655409532f0fee7987ec59bf4fb833eebc5453 /src/amd/vulkan/radv_query.c
parente8997287695119e61709daa89ded28e393ece533 (diff)
radv: wait on the high 32 bits of timestamp queries
In case we are unlucky if the low part is 0xffffffff. Fixes: 5d6a560a29 ("radv: do not use the availability bit for timestamp queries") Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_query.c')
-rw-r--r--src/amd/vulkan/radv_query.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c
index 276cc1c42d7..3c62b71dd6d 100644
--- a/src/amd/vulkan/radv_query.c
+++ b/src/amd/vulkan/radv_query.c
@@ -1336,8 +1336,11 @@ void radv_CmdCopyQueryPoolResults(
if (flags & VK_QUERY_RESULT_WAIT_BIT) {
+ /* Wait on the high 32 bits of the timestamp in
+ * case the low part is 0xffffffff.
+ */
radv_cp_wait_mem(cs, WAIT_REG_MEM_NOT_EQUAL,
- local_src_va,
+ local_src_va + 4,
TIMESTAMP_NOT_READY >> 32,
0xffffffff);
}