Mesa (main): turnip/kgsl: new flag TU_USE_KGSL

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 1 05:27:36 UTC 2021


Module: Mesa
Branch: main
Commit: 9507705693aed66147a320fdae44612bb0415718
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9507705693aed66147a320fdae44612bb0415718

Author: Hyunjun Ko <zzoon at igalia.com>
Date:   Fri Jun 18 00:52:00 2021 +0000

turnip/kgsl: new flag TU_USE_KGSL

There are some cases using kgsl backend on linux that is still not usual
setup though, we need to consider too.

Regarding the timeline semaphore feature, we could implement it for
the kgsl backend in the future, and probalby it should be using the
existing code in tu_drm.

See #4738, #4907

Signed-off-by: Hyunjun Ko <zzoon at igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11488>

---

 src/freedreno/vulkan/meson.build | 1 +
 src/freedreno/vulkan/tu_device.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/freedreno/vulkan/meson.build b/src/freedreno/vulkan/meson.build
index a4a5ea452e3..ca8d8471834 100644
--- a/src/freedreno/vulkan/meson.build
+++ b/src/freedreno/vulkan/meson.build
@@ -99,6 +99,7 @@ if with_xlib_lease
 endif
 
 if with_freedreno_kgsl
+  tu_flags += '-DTU_USE_KGSL'
   libtu_files += files('tu_kgsl.c')
 else
   libtu_files += files('tu_drm.c')
diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c
index 28fbfcd5c44..cb411523d15 100644
--- a/src/freedreno/vulkan/tu_device.c
+++ b/src/freedreno/vulkan/tu_device.c
@@ -149,7 +149,7 @@ get_device_extensions(const struct tu_physical_device *device,
       .KHR_swapchain = TU_HAS_SURFACE,
       .KHR_variable_pointers = true,
       .KHR_vulkan_memory_model = true,
-#ifndef ANDROID
+#ifndef TU_USE_KGSL
       .KHR_timeline_semaphore = true,
 #endif
 #ifdef VK_USE_PLATFORM_DISPLAY_KHR



More information about the mesa-commit mailing list