Skip to content

vulkan/wsi: Don't consider VK_SUBOPTIMAL_KHR to be an error condition

Faith Ekstrand requested to merge gfxstrand/mesa:review/vk-wsi-suboptimal into master

This was causing vkAcquireNextImageKHR to not signal the fences and semaphores. In the case where the semaphore was brand new, this could cause an unsignalled syncobj to be passed into execbuffer2 which it will reject with -EINVAL leading to VK_ERROR_DEVICE_LOST. Thanks to Henrik Rydgård who works on the PPSSPP project for helping me figure this out.

Fixes: ca3cfbf6 "vk: Add an initial implementation of the actual..." Fixes: 778b51f4 "vulkan/wsi: Add a hooks for signaling semaphores..."

Merge request reports