vulkan: return VK_ERROR_SURFACE_LOST_KHR when queueBuffer fails
On Android, queueBuffer failure inside vkQueuePresentKHR is not quite plausible. Previously, VK_ERROR_OUT_OF_DATE_KHR was returned when queueBuffer failed, which ended up with app trying to get latest surface caps again but failing with VK_ERROR_SURFACE_LOST_KHR. Per API contract between Vulkan WSI and BufferQueue, queueBuffer failure inside vkQueuePresentKHR should be treated as surface lost directly. Bug: 178818988 Test: dEQP-VK.wsi.android.swapchain.* Change-Id: Ifc5e58693aa0fe4abe01a9855d8d060dcce0b2f3
Loading
Please register or sign in to comment