tu: Free cmd_buffer from its pool

Fixes: 4ecd2b136f ("tu: Allocate cmd_buffer from its pool")
Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39714>
This commit is contained in:
Valentine Burley 2026-02-05 10:30:47 +01:00 committed by Marge Bot
parent 695cf07f8a
commit a0404ed41e

View file

@ -4316,7 +4316,7 @@ tu_create_cmd_buffer(struct vk_command_pool *pool,
VkResult result = vk_command_buffer_init(pool, &cmd_buffer->vk,
&tu_cmd_buffer_ops, level);
if (result != VK_SUCCESS) {
vk_free2(&device->vk.alloc, NULL, cmd_buffer);
vk_free2(&device->vk.alloc, &pool->alloc, cmd_buffer);
return result;
}