anv: fix Android WSI VkFence
authorYiwei Zhang <zzyiwei@chromium.org>
Sat, 12 Jun 2021 23:35:19 +0000 (23:35 +0000)
committerYiwei Zhang <zzyiwei@chromium.org>
Sun, 13 Jun 2021 06:12:31 +0000 (06:12 +0000)
Fix an obvious one-liner bug.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11344>

src/intel/vulkan/anv_android.c

index 253a7f7..8e02aae 100644 (file)
@@ -820,7 +820,7 @@ anv_AcquireImageANDROID(
          }
       } else if (semaphore_h != VK_NULL_HANDLE) {
          semaphore_fd = nativeFenceFd;
-      } else if (fence_h == VK_NULL_HANDLE) {
+      } else if (fence_h != VK_NULL_HANDLE) {
          fence_fd = nativeFenceFd;
       } else {
          /* Nothing to import into so we have to close the file */