radv: Use correct semaphore handle type for Android import.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 6 Jul 2020 23:51:50 +0000 (01:51 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 8 Jul 2020 14:21:16 +0000 (14:21 +0000)
Coincidentally got a bugreport of a game that is broken without the import
fix below, but it turns out I made a copy-paste error as well ..

In good news it is clearly tested now.

Fixes: ad151499583 "radv: Set handle types in Android semaphore/fence import."
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5783>

src/amd/vulkan/radv_android.c

index 82d4e220b74dcf42a576beba774006c5b6587b76..6be0391b8d9eace9768e1cf623f2d9e0001a300d 100644 (file)
@@ -398,7 +398,7 @@ radv_AcquireImageANDROID(
                                                                 .flags = VK_SEMAPHORE_IMPORT_TEMPORARY_BIT,
                                                                 .fd = semaphore_fd,
                                                                 .semaphore = semaphore,
-                                                                .handleType = VK_EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT,
+                                                                .handleType = VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT,
                                                            });
        }