Skip to content

vulkan/wsi/x11: report swapchain status in QueuePresent with threads

vulkan/wsi/x11: report swapchain status in QueuePresent with threads

In commit 6f880f12 we started going through the X11 events before doing a present operation to ensure we notify the application about potential surface resizes.

We only applied the change for the non threaded path instead of both.

This change fixes deals with the threaded path by introducing a new status queue that forwards status updates from the swapchain thread to the application thread so that we don't mess about with the X11 connection from different threads.

v2: Rebase Correct commit message (Jason/Lionel)

Signed-off-by: Lionel Landwerlin lionel.g.landwerlin@intel.com Fixes: 6f880f12 ("vulkan/wsi: update swapchain status on vkQueuePresent")

Edited by Jordan Justen

Merge request reports