Mesa (main): radv: fix missing destroy for the overallocation mutex
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jan 19 17:08:15 UTC 2022
Module: Mesa
Branch: main
Commit: 96cc3007461a837042fc1bb3adf11356638efdcd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=96cc3007461a837042fc1bb3adf11356638efdcd
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Wed Jan 19 10:35:56 2022 +0100
radv: fix missing destroy for the overallocation mutex
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14611>
---
src/amd/vulkan/radv_device.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index f419095666a..030ece0a729 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -3315,6 +3315,8 @@ fail:
device->ws->ctx_destroy(device->hw_ctx[i]);
}
+ mtx_destroy(&device->overallocation_mutex);
+
vk_device_finish(&device->vk);
vk_free(&device->vk.alloc, device);
return result;
@@ -3351,6 +3353,8 @@ radv_DestroyDevice(VkDevice _device, const VkAllocationCallbacks *pAllocator)
device->ws->ctx_destroy(device->hw_ctx[i]);
}
+ mtx_destroy(&device->overallocation_mutex);
+
radv_device_finish_meta(device);
VkPipelineCache pc = radv_pipeline_cache_to_handle(device->mem_cache);
More information about the mesa-commit
mailing list