Merge "vulkan: return VK_ERROR_SURFACE_LOST_KHR when queueBuffer fails" am: 83a6b55b28 am: 18a788a0c7 am: 9f2cbc235c

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1624283

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I875b53b896f4f53e154fd64f7502ca835bdaf765
diff --git a/vulkan/libvulkan/swapchain.cpp b/vulkan/libvulkan/swapchain.cpp
index cb845a0..037d395 100644
--- a/vulkan/libvulkan/swapchain.cpp
+++ b/vulkan/libvulkan/swapchain.cpp
@@ -1707,7 +1707,7 @@
                 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);