Skip to content

vulkan/wsi: update swapchain status on vkQueuePresent

With the following chain of events :

   vkQueuePresent()
   <- Surface resize
   vkQueuePresent()

We should be able to report SUBOPTIMAL or OUT_OF_DATE on the second vkQueuePresent() call. Currently we only look at X11 events in the vkAcquireNextImage() path so we're not able to report this.

This change checks the queue of events and process any available ones to update the swapchain status.

Signed-off-by: Lionel Landwerlin lionel.g.landwerlin@intel.com Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111097 Cc: mesa-stable@lists.freedesktop.org

Edited by Lionel Landwerlin

Merge request reports