mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-08 14:20:30 +01:00
tu: Allocate cmd_buffer from its pool
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14760 Signed-off-by: Karmjit Mahil <karmjit.mahil@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39623>
This commit is contained in:
parent
342a5ba44e
commit
4ecd2b136f
1 changed files with 1 additions and 1 deletions
|
|
@ -4307,7 +4307,7 @@ tu_create_cmd_buffer(struct vk_command_pool *pool,
|
|||
struct tu_cmd_buffer *cmd_buffer;
|
||||
|
||||
cmd_buffer = (struct tu_cmd_buffer *) vk_zalloc2(
|
||||
&device->vk.alloc, NULL, sizeof(*cmd_buffer), 8,
|
||||
&device->vk.alloc, &pool->alloc, sizeof(*cmd_buffer), 8,
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
|
||||
|
||||
if (cmd_buffer == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue