mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
radv/winsys: Fix use of nonexisting struct type in sizeof
Since only the pointer size is queried here, this is functionally equivalent. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7430>
This commit is contained in:
parent
9eda7f475c
commit
5cc29fccbe
1 changed files with 1 additions and 1 deletions
|
|
@ -637,7 +637,7 @@ static void radv_amdgpu_cs_add_virtual_buffer(struct radeon_cmdbuf *_cs,
|
|||
MAX2(2, cs->max_num_virtual_buffers * 2);
|
||||
struct radeon_winsys_bo **virtual_buffers =
|
||||
realloc(cs->virtual_buffers,
|
||||
sizeof(struct radv_amdgpu_virtual_virtual_buffer*) * max_num_virtual_buffers);
|
||||
sizeof(struct radeon_winsys_bo*) * max_num_virtual_buffers);
|
||||
if (!virtual_buffers) {
|
||||
cs->status = VK_ERROR_OUT_OF_HOST_MEMORY;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue