diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-02-26 22:36:10 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-03-01 13:37:17 +0000 |
commit | d735682eb8bbcedbabeacfcd2bd3592653eba979 (patch) | |
tree | 641d09f3c41e26e5f1399f82158b2535a2e0d39f /src/amd/vulkan/radv_query.c | |
parent | 95b09980e921b2c327553988160550767c639cc7 (diff) |
radv: Use correct size for availability flag.
Per spec, VK_QUERY_RESULT_64_BIT specifies the integer size and the
availability flag is an integer. We apparently handled this correctly
already for the copy to buffer case.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Cc: 13.0 17.0 <[email protected]>
(cherry picked from commit 43d833ae97daa73a2422b5696b587a7b46750e07)
Diffstat (limited to 'src/amd/vulkan/radv_query.c')
-rw-r--r-- | src/amd/vulkan/radv_query.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c index a2d0889fc03..288bd43a763 100644 --- a/src/amd/vulkan/radv_query.c +++ b/src/amd/vulkan/radv_query.c @@ -205,8 +205,11 @@ VkResult radv_GetQueryPoolResults( } if (flags & VK_QUERY_RESULT_WITH_AVAILABILITY_BIT) { - *(uint32_t*)dest = available; - dest += 4; + if (flags & VK_QUERY_RESULT_64_BIT) { + *(uint64_t*)dest = available; + } else { + *(uint32_t*)dest = available; + } } } |