Mesa (main): anv: fix Android WSI VkFence
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Jun 13 06:35:07 UTC 2021
Module: Mesa
Branch: main
Commit: a0122385f0772ab16658853091b4f71659887715
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a0122385f0772ab16658853091b4f71659887715
Author: Yiwei Zhang <zzyiwei at chromium.org>
Date: Sat Jun 12 23:35:19 2021 +0000
anv: fix Android WSI VkFence
Fix an obvious one-liner bug.
Signed-off-by: Yiwei Zhang <zzyiwei at chromium.org>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11344>
---
src/intel/vulkan/anv_android.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/vulkan/anv_android.c b/src/intel/vulkan/anv_android.c
index 253a7f787be..8e02aae92d7 100644
--- a/src/intel/vulkan/anv_android.c
+++ b/src/intel/vulkan/anv_android.c
@@ -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 */
More information about the mesa-commit
mailing list