commit | 40065e53e207d7c2f96bdf01702b32e80d2542f2 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Wed Mar 10 15:02:17 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Mar 10 15:02:17 2021 +0000 |
tree | e005faddf9e33fb209ff5dddd331734002203d29 | |
parent | f45791522f7009f8281415883767185e93473f60 [diff] | |
parent | 9f2cbc235c654933b3b892ef7f949901bb0332f4 [diff] |
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);