winewayland.drv: Detect and report vkQueuePresentKHR errors.
commitd0fb8f637c2e3e09828a6017c9ef07026de3314d
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>
Tue, 7 Nov 2023 09:58:06 +0000 (7 11:58 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 29 Nov 2023 19:44:54 +0000 (29 20:44 +0100)
tree9cadc1cb851713f85d41c469bcf3b4a4df945301
parent8a4e2546f57e0e35eef0abfa55b234434206ff14
winewayland.drv: Detect and report vkQueuePresentKHR errors.

If the VkSwapchainKHR extent does not match the target window client
area, report VK_ERROR_OUT_OF_DATE_KHR, to notify the app that it should
recreate the swapchain.

We also report VK_ERROR_OUT_OF_DATE_KHR if the HWND is no longer valid,
to match win32 behavior (e.g., nvidia). The application will eventually
get VK_ERROR_SURFACE_LOST_KHR during the swapchain recreation process.
dlls/winewayland.drv/vulkan.c
dlls/winewayland.drv/waylanddrv.h