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:

committed by
Marge Bot

parent
6619f855d9
commit
96cc300746
@@ -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);
|
||||
|
Reference in New Issue
Block a user