mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 11:00:11 +01:00
tu: tu_device should clean up its global bo
The global buffer object is allocated and mapped during tu_device creation. Correspondingly it should also be cleaned up during device destruction. Signed-off-by: Zan Dobersek <zdobersek@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27814>
This commit is contained in:
parent
f623c27eab
commit
25a0eadcae
1 changed files with 2 additions and 0 deletions
|
|
@ -2574,6 +2574,8 @@ tu_DestroyDevice(VkDevice _device, const VkAllocationCallbacks *pAllocator)
|
|||
tu_bo_suballocator_finish(&device->autotune_suballoc);
|
||||
tu_bo_suballocator_finish(&device->kgsl_profiling_suballoc);
|
||||
|
||||
tu_bo_finish(device, device->global_bo);
|
||||
|
||||
for (unsigned i = 0; i < TU_MAX_QUEUE_FAMILIES; i++) {
|
||||
for (unsigned q = 0; q < device->queue_count[i]; q++)
|
||||
tu_queue_finish(&device->queues[i][q]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue