radv: fix missing destroy for the overallocation mutex

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14611>
This commit is contained in:
Samuel Pitoiset
2022-01-19 10:35:56 +01:00
committed by Marge Bot
parent 6619f855d9
commit 96cc300746

View File

@@ -3315,6 +3315,8 @@ fail:
device->ws->ctx_destroy(device->hw_ctx[i]); device->ws->ctx_destroy(device->hw_ctx[i]);
} }
mtx_destroy(&device->overallocation_mutex);
vk_device_finish(&device->vk); vk_device_finish(&device->vk);
vk_free(&device->vk.alloc, device); vk_free(&device->vk.alloc, device);
return result; return result;
@@ -3351,6 +3353,8 @@ radv_DestroyDevice(VkDevice _device, const VkAllocationCallbacks *pAllocator)
device->ws->ctx_destroy(device->hw_ctx[i]); device->ws->ctx_destroy(device->hw_ctx[i]);
} }
mtx_destroy(&device->overallocation_mutex);
radv_device_finish_meta(device); radv_device_finish_meta(device);
VkPipelineCache pc = radv_pipeline_cache_to_handle(device->mem_cache); VkPipelineCache pc = radv_pipeline_cache_to_handle(device->mem_cache);