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 <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Cc: 13.0 17.0 <mesa-stable@lists.freedesktop.org>
}
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;
+ }
}
}