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:
Karmjit Mahil 2026-01-30 09:02:15 +00:00 committed by Marge Bot
parent 342a5ba44e
commit 4ecd2b136f

View file

@ -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)