Files
UltraGrid/src
Martin Piatka f648c2753c disp/vulkan: Fix suboptimal swapchain handling
When vkAcquireNextImage() returns VK_SUBOPTIMAL_KHR it means that a valid
usable image was still acquired and that means that the
acquire_samaphore is pending and signalled as normal.

This means we cannot just recreate the swapchain and reuse it to acquire
an image from the new swapchain as VulkanDisplay::display_queued_image()
was doing, because the spec states that the semaphore must be unsignaled
and not pending.

The fix here is to render and display the suboptimal image as normal and
set a flag to immediately return swapchain_image_out_of_date to trigger
a swapchain recreation on the next frame.
2025-03-20 13:23:11 +01:00
..
2024-08-09 09:22:59 +02:00
2025-03-17 15:54:45 +01:00
2024-09-26 14:36:42 +02:00
2023-07-18 16:43:37 +02:00
2023-03-14 10:31:41 +01:00
2024-10-08 16:16:15 +02:00
2024-10-08 16:16:15 +02:00
2024-11-28 10:30:11 +01:00
2024-09-30 10:54:14 +02:00
2024-11-14 11:54:18 +01:00
2024-11-28 11:46:09 +01:00
2024-10-21 10:55:27 +02:00
2024-08-14 11:15:42 +02:00
2024-05-17 13:19:49 +02:00
2023-10-06 11:19:10 +02:00
2023-03-09 12:30:10 +01:00
2023-03-29 12:09:38 +02:00
2025-03-17 15:54:45 +01:00
2025-03-05 16:15:51 +01:00
2025-03-05 16:15:51 +01:00
2024-07-08 10:21:00 +02:00
2024-05-30 16:05:10 +02:00
2024-10-11 16:14:00 +02:00
2024-11-28 10:30:11 +01:00
2024-11-28 10:30:11 +01:00
2024-10-08 12:32:02 +02:00
2024-10-08 12:32:02 +02:00
2024-05-16 09:54:22 +02:00
2024-05-16 09:54:22 +02:00
2024-03-25 15:29:10 +01:00
2025-02-14 09:51:18 +01:00
2023-07-18 16:43:37 +02:00