aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZan Dobersek <zdobersek@igalia.com>2024-02-27 10:21:39 +0100
committerMarge Bot <emma+marge@anholt.net>2024-02-28 15:51:00 +0000
commit25a0eadcaef9612865ee29156018923c51e2e8cb (patch)
tree076e8e7782c582a3114f99a3baf1f69ca0c5f0a1
parentf623c27eab9e4bc616600da88334937e750e87dd (diff)
downloadmesa3d-25a0eadcaef9612865ee29156018923c51e2e8cb.tar.gz
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>
-rw-r--r--src/freedreno/vulkan/tu_device.cc2
1 files changed, 2 insertions, 0 deletions
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]);