Mesa (main): v3dv: Destroy the device mutex on the teardown path

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 13 17:57:18 UTC 2022


Module: Mesa
Branch: main
Commit: 32527f3cccd07a7442abc1264231c2a8e77ddc38
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=32527f3cccd07a7442abc1264231c2a8e77ddc38

Author: Jason Ekstrand <jason.ekstrand at collabora.com>
Date:   Mon Apr  4 08:44:53 2022 -0500

v3dv: Destroy the device mutex on the teardown path

Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15704>

---

 src/broadcom/vulkan/v3dv_device.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/broadcom/vulkan/v3dv_device.c b/src/broadcom/vulkan/v3dv_device.c
index 2c46c9ebea7..915fb691979 100644
--- a/src/broadcom/vulkan/v3dv_device.c
+++ b/src/broadcom/vulkan/v3dv_device.c
@@ -1998,6 +1998,7 @@ v3dv_CreateDevice(VkPhysicalDevice physicalDevice,
 
 fail:
    destroy_device_syncs(device, physical_device->render_fd);
+   mtx_destroy(&device->mutex);
    vk_device_finish(&device->vk);
    vk_free(&device->vk.alloc, device);
 



More information about the mesa-commit mailing list