v3dv: fix fill buffer with VK_WHOLE_SIZE
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
committed by
Marge Bot
parent
d71a5af723
commit
1af2606556
@@ -1361,7 +1361,7 @@ v3dv_CmdFillBuffer(VkCommandBuffer commandBuffer,
|
||||
* a multiple of 4, then the nearest smaller multiple is used."
|
||||
*/
|
||||
if (size == VK_WHOLE_SIZE) {
|
||||
size = dst_buffer->mem->bo->size;
|
||||
size = dst_buffer->size - dstOffset;
|
||||
size -= size % 4;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user