mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
vk/device: Actually destroy batch buffers
This commit is contained in:
parent
8cf932fd25
commit
2dc0f7fe5b
1 changed files with 8 additions and 0 deletions
|
|
@ -2249,6 +2249,14 @@ anv_cmd_buffer_destroy(struct anv_device *device,
|
|||
|
||||
assert(obj_type == VK_OBJECT_TYPE_COMMAND_BUFFER);
|
||||
|
||||
/* Destroy all of the batch buffers */
|
||||
struct anv_batch_bo *bbo = cmd_buffer->last_batch_bo;
|
||||
while (bbo->prev_batch_bo) {
|
||||
struct anv_batch_bo *prev = bbo->prev_batch_bo;
|
||||
anv_batch_bo_destroy(bbo, cmd_buffer->device);
|
||||
bbo = prev;
|
||||
}
|
||||
|
||||
anv_bo_pool_free(&device->batch_bo_pool, &cmd_buffer->surface_bo);
|
||||
anv_reloc_list_finish(&cmd_buffer->surface_relocs, device);
|
||||
anv_state_stream_finish(&cmd_buffer->surface_state_stream);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue