mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-04 01:40:30 +01:00
radv: Fix freeing meta state if the device pipeline cache fails to allocate.
CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit c685076ab0)
This commit is contained in:
parent
87d254b818
commit
f1c8bc6e85
1 changed files with 3 additions and 1 deletions
|
|
@ -1119,13 +1119,15 @@ VkResult radv_CreateDevice(
|
|||
result = radv_CreatePipelineCache(radv_device_to_handle(device),
|
||||
&ci, NULL, &pc);
|
||||
if (result != VK_SUCCESS)
|
||||
goto fail;
|
||||
goto fail_meta;
|
||||
|
||||
device->mem_cache = radv_pipeline_cache_from_handle(pc);
|
||||
|
||||
*pDevice = radv_device_to_handle(device);
|
||||
return VK_SUCCESS;
|
||||
|
||||
fail_meta:
|
||||
radv_device_finish_meta(device);
|
||||
fail:
|
||||
if (device->trace_bo)
|
||||
device->ws->buffer_destroy(device->trace_bo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue