mesa/src/vulkan/wsi
Hans-Kristian Arntzen c78257e8b0 wsi/x11: Rewrite wait logic for ANI/WaitForPresentKHR.
When we need to poll the XCB connection with a non-trivial timeout,
be very careful to not hit an XCB bug where a poll() may hang for too
long even if an event is ready in the special event queue.

This is a pragmatic workaround, a wait_for_special_event_with_timeout()
is the only proper solution here.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19279>
2022-11-23 19:06:12 +00:00
..
meson.build vulkan/wsi: Add dep_libudev to idep dependencies 2022-10-14 21:10:29 +00:00
wsi_common.c wsi/common: Allow present-wait to be unconditionally enabled. 2022-11-23 19:06:12 +00:00
wsi_common.h wsi/common: Allow present-wait to be unconditionally enabled. 2022-11-23 19:06:12 +00:00
wsi_common_display.c wsi/display: Implement VK_KHR_present_wait on KHR_display swapchain. 2022-11-23 19:06:12 +00:00
wsi_common_display.h vulkan/wsi/display: Wrap wsi_display_fence in a vk_sync 2021-11-16 10:54:27 -06:00
wsi_common_drm.c vulkan/wsi: Add a supports_scanout flag 2022-09-28 21:35:12 +00:00
wsi_common_drm.h vulkan/wsi: create a common function to compare drm devices 2022-01-14 12:19:57 +00:00
wsi_common_private.h vulkan/wsi: Add mechanism to wait for WSI semaphore unsignal. 2022-11-23 19:06:12 +00:00
wsi_common_queue.h util/vector: make util_vector_init harder to misuse 2021-10-08 00:15:11 +00:00
wsi_common_wayland.c vulkan/wsi: Add stub interface for VK_KHR_present_wait 2022-11-23 19:06:12 +00:00
wsi_common_win32.c vulkan/wsi: Add stub interface for VK_KHR_present_wait 2022-11-23 19:06:12 +00:00
wsi_common_x11.c wsi/x11: Rewrite wait logic for ANI/WaitForPresentKHR. 2022-11-23 19:06:12 +00:00