From 25a0eadcaef9612865ee29156018923c51e2e8cb Mon Sep 17 00:00:00 2001 From: Zan Dobersek Date: Tue, 27 Feb 2024 10:21:39 +0100 Subject: [PATCH] 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 Part-of: --- src/freedreno/vulkan/tu_device.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedreno/vulkan/tu_device.cc b/src/freedreno/vulkan/tu_device.cc index 8a2c961efc3..145782b81f5 100644 --- a/src/freedreno/vulkan/tu_device.cc +++ b/src/freedreno/vulkan/tu_device.cc @@ -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]);