Mesa (master): radv: Use correct semaphore handle type for Android import.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 8 14:42:13 UTC 2020


Module: Mesa
Branch: master
Commit: ffb8020f6e7ae3fb89d5b5ab17ff6fbdc6798ac4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ffb8020f6e7ae3fb89d5b5ab17ff6fbdc6798ac4

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Tue Jul  7 01:51:50 2020 +0200

radv: Use correct semaphore handle type for Android import.

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 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5783>

---

 src/amd/vulkan/radv_android.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_android.c b/src/amd/vulkan/radv_android.c
index 82d4e220b74..6be0391b8d9 100644
--- a/src/amd/vulkan/radv_android.c
+++ b/src/amd/vulkan/radv_android.c
@@ -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,
 		                                            });
 	}
 



More information about the mesa-commit mailing list