Skip to content

vulkan/wsi/wayland: return VK_ERROR_NATIVE_WINDOW_IN_USE_KHR

Simon Ser requested to merge emersion/mesa:surface-in-use into main

If the surface is already in use by another swapchain, return VK_ERROR_NATIVE_WINDOW_IN_USE_KHR. The spec states:

If pCreateInfo->oldSwapchain is VK_NULL_HANDLE, and the native window referred to by pCreateInfo->surface is already associated with a Vulkan swapchain, VK_ERROR_NATIVE_WINDOW_IN_USE_KHR must be returned.

Signed-off-by: Simon Ser contact@emersion.fr References: #7467

cc @leandrohrb

Merge request reports