mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 12:20:10 +01:00
pvr: Fix allocation size passed in pvr_cmd_buffer_alloc_mem.
pvr_cmd_buffer_alloc_mem takes size in bytes. This change fixes the invocations which assume it to be size in dwords. Signed-off-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com> Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18976>
This commit is contained in:
parent
0b694c2eb3
commit
b03e73a024
1 changed files with 2 additions and 2 deletions
|
|
@ -2781,7 +2781,7 @@ pvr_setup_vertex_buffers(struct pvr_cmd_buffer *cmd_buffer,
|
|||
|
||||
result = pvr_cmd_buffer_alloc_mem(cmd_buffer,
|
||||
cmd_buffer->device->heaps.pds_heap,
|
||||
pds_info->data_size_in_dwords,
|
||||
pds_info->data_size_in_dwords << 2,
|
||||
PVR_BO_ALLOC_FLAG_CPU_MAPPED,
|
||||
&pvr_bo);
|
||||
if (result != VK_SUCCESS)
|
||||
|
|
@ -2896,7 +2896,7 @@ static VkResult pvr_setup_descriptor_mappings(
|
|||
|
||||
result = pvr_cmd_buffer_alloc_mem(cmd_buffer,
|
||||
cmd_buffer->device->heaps.pds_heap,
|
||||
pds_info->data_size_in_dwords,
|
||||
pds_info->data_size_in_dwords << 2,
|
||||
PVR_BO_ALLOC_FLAG_CPU_MAPPED,
|
||||
&pvr_bo);
|
||||
if (result != VK_SUCCESS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue