diff options
| author | 2021-03-09 22:54:38 +0000 | |
|---|---|---|
| committer | 2021-03-09 22:54:38 +0000 | |
| commit | 492dd5fcda80cb734b158b05a1b50105a26f7e32 (patch) | |
| tree | 0ecefe3c9b0f12fdc98bad6415ef340ed1d84936 /libs/gui/LayerState.cpp | |
| parent | 5dc18f28e3630fd66253b17c167b115f052f752f (diff) | |
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
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions