diff options
| author | 2021-03-10 14:40:32 +0000 | |
|---|---|---|
| committer | 2021-03-10 14:40:32 +0000 | |
| commit | 9f2cbc235c654933b3b892ef7f949901bb0332f4 (patch) | |
| tree | 8ad2b5bacbf05e901bd10b4945642cc731b91dc3 | |
| parent | 1f7faec710d0c11825d7620c4a372e9b3d75d847 (diff) | |
| parent | 18a788a0c7154af7ae60b795d34a82af89f4f62a (diff) | |
Merge "vulkan: return VK_ERROR_SURFACE_LOST_KHR when queueBuffer fails" am: 83a6b55b28 am: 18a788a0c7
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1624283
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I27190b8d953b5659d6563b6f1129e3386eb3bb69
| -rw-r--r-- | vulkan/libvulkan/swapchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vulkan/libvulkan/swapchain.cpp b/vulkan/libvulkan/swapchain.cpp index da28052ae2..7bfe3f82fa 100644 --- a/vulkan/libvulkan/swapchain.cpp +++ b/vulkan/libvulkan/swapchain.cpp @@ -1709,7 +1709,7 @@ VkResult QueuePresentKHR(VkQueue queue, const VkPresentInfoKHR* present_info) { if (err != android::OK) { ALOGE("queueBuffer failed: %s (%d)", strerror(-err), err); swapchain_result = WorstPresentResult( - swapchain_result, VK_ERROR_OUT_OF_DATE_KHR); + swapchain_result, VK_ERROR_SURFACE_LOST_KHR); } else { if (img.dequeue_fence >= 0) { close(img.dequeue_fence); |