libvulkan: Slightly better handling of swapchain re-creation
Previously we would fail vkCreateSwapchainKHR if VkSwapchainCreateInfo::oldSwapchain was used, because we were unable to dequeue all buffers for the new swapchain from an already-used native window. Now we disconnect and re-connect to the native window in order to fully reset state, and allow us to dequeue all buffers. Additionally, we tag the old swapchain as out-of-date, so future image acquires and presents will fail with VK_ERROR_OUT_OF_DATE_KHR on that swapchain. This is less than ideal, but better than what we had, and the best we have time to do for N. Bug: 26927424 Change-Id: Ifaa5048376f72a63ecb1dca3d1ff85dbee2c24d0
Loading
Please register or sign in to comment