turnip: Fix allocation size for vkCmdUpdateBuffer.

tu_cs_alloc() takes a size in dwords, not bytes.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11743>
This commit is contained in:
Emma Anholt 2021-07-06 13:35:38 -07:00 committed by Marge Bot
parent 3720447204
commit a7e753cb96
1 changed files with 1 additions and 1 deletions

View File

@ -1713,7 +1713,7 @@ tu_CmdUpdateBuffer(VkCommandBuffer commandBuffer,
TU_FROM_HANDLE(tu_buffer, buffer, dstBuffer);
struct tu_cs_memory tmp;
VkResult result = tu_cs_alloc(&cmd->sub_cs, DIV_ROUND_UP(dataSize, 64), 64, &tmp);
VkResult result = tu_cs_alloc(&cmd->sub_cs, DIV_ROUND_UP(dataSize, 64), 64 / 4, &tmp);
if (result != VK_SUCCESS) {
cmd->record_result = result;
return;