v3dv: fix fill buffer with VK_WHOLE_SIZE

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Iago Toral Quiroga
2020-02-27 12:25:16 +01:00
committed by Marge Bot
parent d71a5af723
commit 1af2606556
+1 -1
View File
@@ -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;
}