Skip to content

Instantly share code, notes, and snippets.

@lostgoat
Created July 30, 2019 17:52
Show Gist options
  • Save lostgoat/42afdd11feb962348fa22ff5ca181848 to your computer and use it in GitHub Desktop.
Save lostgoat/42afdd11feb962348fa22ff5ca181848 to your computer and use it in GitHub Desktop.
andres@andres-vr:~/git/mesa$ git diff
diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c
index cdff336f8a3..a8e214f7c50 100644
--- a/src/amd/vulkan/radv_query.c
+++ b/src/amd/vulkan/radv_query.c
@@ -1133,7 +1133,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 = *(volatile uint64_t *)src != TIMESTAMP_NOT_READY;
}
if (!available && !(flags & VK_QUERY_RESULT_PARTIAL_BIT)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment