radv: Handle copying zero queries.
Looks like this is allowed.
Fixes: 8475a14302 ("radv: Implement pipeline statistics queries.")
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12907>
This commit is contained in:
parent
1c3ee13a7f
commit
ad0bd2a7d2
1 changed files with 3 additions and 0 deletions
|
|
@ -1197,6 +1197,9 @@ radv_CmdCopyQueryPoolResults(VkCommandBuffer commandBuffer, VkQueryPool queryPoo
|
|||
uint64_t dest_va = radv_buffer_get_va(dst_buffer->bo);
|
||||
dest_va += dst_buffer->offset + dstOffset;
|
||||
|
||||
if (!queryCount)
|
||||
return;
|
||||
|
||||
radv_cs_add_buffer(cmd_buffer->device->ws, cmd_buffer->cs, pool->bo);
|
||||
radv_cs_add_buffer(cmd_buffer->device->ws, cmd_buffer->cs, dst_buffer->bo);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue