meson/tu: Don't compile libdrm paths if KGSL is selected

Even if there is libdrm we shouldn't use it if KGSL is selected.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17173>
This commit is contained in:
Danylo Piliaiev 2022-06-21 21:07:22 +03:00
parent 6ad7be1b36
commit a8671b2182

View file

@ -88,6 +88,8 @@ endif
if with_freedreno_kgsl
tu_flags += '-DTU_USE_KGSL'
# Even if libdrm is available we shouldn't use it in KGSL build
tu_flags += '-UHAVE_LIBDRM'
libtu_files += files('tu_kgsl.c')
else
libtu_files += files('tu_drm.c')