anv: fix Android WSI VkFence

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>
This commit is contained in:
Yiwei Zhang 2021-06-12 23:35:19 +00:00
parent aa14851340
commit a0122385f0

View 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 */