summaryrefslogtreecommitdiffstats
path: root/libs/mesa/patches/300-teflon-conditional-npu-drivers.patch
blob: 3ad0cbf81cc1ef60c7d7369f09c6a4c60ed7e8df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- a/src/gallium/targets/teflon/meson.build
+++ b/src/gallium/targets/teflon/meson.build
@@ -1,3 +1,14 @@
+teflon_deps = [idep_nir, idep_mesautil]
+if with_gallium_etnaviv
+  teflon_deps += driver_etnaviv
+endif
+if with_gallium_rocket
+  teflon_deps += driver_rocket
+endif
+if with_gallium_ethosu
+  teflon_deps += driver_ethosu
+endif
+
 libteflon = shared_library(
   'teflon',
   [ 'teflon_target.c' ],
@@ -6,13 +17,7 @@ libteflon = shared_library(
   link_with : [libpipe_loader_static, libws_null, libwsw, libswdri, libswkmsdri, libgallium ],
   gnu_symbol_visibility : 'hidden',
   link_args : ld_args_build_id,
-  dependencies : [
-    driver_etnaviv,
-    driver_rocket,
-    driver_ethosu,
-    idep_nir,
-    idep_mesautil,
-  ],
+  dependencies : teflon_deps,
   install : true,
 )