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