mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-22 03:00:35 +01:00
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:
parent
695cf07f8a
commit
a0404ed41e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue