godot/drivers
Matias N. Goldberg 0b09fdd96c Fix validation error when resizing window
Sometimes when resizing the window we may get the following validation
error:

ERROR: VALIDATION - Message Id Number: -370888023 | Message Id Name:
VUID-vkAcquireNextImageKHR-semaphore-01286
	Validation Error: [ VUID-vkAcquireNextImageKHR-semaphore-01286 ]
Object 0: handle = 0xdcc8fd0000000012, type = VK_OBJECT_TYPE_SEMAPHORE;
| MessageID = 0xe9e4b2a9 | vkAcquireNextImageKHR: Semaphore must not be
currently signaled or in a wait state. The Vulkan spec states: If
semaphore is not VK_NULL_HANDLE it must be unsignaled
(https://vulkan.lunarg.com/doc/view/1.2.198.1/linux/1.2-extensions/vkspec.html#VUID-vkAcquireNextImageKHR-semaphore-01286)

In VulkanContext::prepare_buffers the problem was that
vkAcquireNextImageKHR returned VK_SUBOPTIMAL_KHR but it already signaled
the semaphore (because it is possible to continue normally with a
VK_SUBOPTIMAL_KHR result).

Then we recreate the swapchain and reuse the
w->image_acquired_semaphores[frame_index] which is in an inconsistent
state.

Fixed by recreating the semamphores along the swapchain.

Fix #80570
2023-08-15 20:57:49 -03:00
..
alsa Fix wait for thread not started 2023-04-27 20:28:22 +02:00
alsamidi Fix wait for thread not started 2023-04-27 20:28:22 +02:00
coreaudio Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
coremidi Style: Harmonize header includes in platform ports 2023-06-08 15:19:19 +02:00
gl_context Enable shadow warnings and fix raised errors 2023-05-11 16:00:59 +02:00
gles3 Add option to enable HDR rendering in 2D 2023-08-07 11:24:03 +02:00
png libpng: Enable intrinsics on x86/SSE2, ppc64/VSX, and all arm/NEON 2023-08-04 14:57:21 +02:00
pulseaudio PulseAudio: Remove get_latency() caching 2023-08-04 15:35:13 +09:30
unix [FileAccess] Add methods to get/set "hidden" and "read-only" attributes on macOS/BSD and Windows. 2023-08-08 21:51:32 +03:00
vulkan Fix validation error when resizing window 2023-08-15 20:57:49 -03:00
wasapi [Windows] Initialize COM as apartment-threaded. 2023-07-20 12:14:16 +03:00
windows [FileAccess] Add methods to get/set "hidden" and "read-only" attributes on macOS/BSD and Windows. 2023-08-08 21:51:32 +03:00
winmidi One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
xaudio2 Fix wait for thread not started 2023-04-27 20:28:22 +02:00
register_driver_types.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
register_driver_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
SCsub Refactor SPIR-V reflection into a generic RenderingDevice feature 2022-12-12 14:14:53 +01:00