radv: Set handle types in Android semaphore/fence import.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 5 Jul 2020 17:57:29 +0000 (19:57 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 6 Jul 2020 13:40:49 +0000 (13:40 +0000)
Seems like we forgot to set it all this time ...

Fixes: b1444c9ccb0 "radv: Implement VK_ANDROID_native_buffer."
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5759>

src/amd/vulkan/radv_android.c

index 78c0ab48ea7b386b8acd8e6db58f7663eb0e30e3..82d4e220b74dcf42a576beba774006c5b6587b76 100644 (file)
@@ -398,6 +398,7 @@ radv_AcquireImageANDROID(
                                                                 .flags = VK_SEMAPHORE_IMPORT_TEMPORARY_BIT,
                                                                 .fd = semaphore_fd,
                                                                 .semaphore = semaphore,
+                                                                .handleType = VK_EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT,
                                                            });
        }
 
@@ -409,6 +410,7 @@ radv_AcquireImageANDROID(
                                                         .flags = VK_FENCE_IMPORT_TEMPORARY_BIT,
                                                         .fd = fence_fd,
                                                         .fence = fence,
+                                                        .handleType = VK_EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT,
                                                     });
        }