mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
vulkan/wsi: Fix double destroy of present_id_timeline at swapchain create
Fixes:c888da3d48("vulkan/wsi: Add mechanism to wait for WSI semaphore unsignal.") Reviewed-by: Hans-Kristian Arntzen <post@arntzen-software.no> Signed-off-by: Aitor Camacho <aitor@lunarg.com> (cherry picked from commitdf19ec3020) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38803>
This commit is contained in:
parent
84caa703c9
commit
d110b38d32
2 changed files with 1 additions and 2 deletions
|
|
@ -54,7 +54,7 @@
|
|||
"description": "vulkan/wsi: Fix double destroy of present_id_timeline at swapchain create",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "c888da3d48a55ad7be4fedf783369fb12163b03e",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1098,7 +1098,6 @@ wsi_CreateSwapchainKHR(VkDevice _device,
|
|||
sizeof (*swapchain->blit.semaphores),
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
|
||||
if (!swapchain->blit.semaphores) {
|
||||
wsi_device->DestroySemaphore(_device, swapchain->present_id_timeline, alloc);
|
||||
swapchain->destroy(swapchain, alloc);
|
||||
return VK_ERROR_OUT_OF_HOST_MEMORY;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue