meson: build radeon drm-shim also for r300 and r600
authorPavel Ondračka <pavel.ondracka@gmail.com>
Tue, 3 May 2022 06:17:57 +0000 (08:17 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 16 Nov 2022 14:37:47 +0000 (14:37 +0000)
Right now the drm-shim is build only when one also builds radeonsi
or radv.

Acked-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19692>

src/amd/meson.build
src/meson.build

index 37f9b57..f394f38 100644 (file)
 
 inc_amd = include_directories('.')
 
-subdir('addrlib')
-subdir('common')
-if with_llvm
-  subdir('llvm')
-else
-  libamd_common_llvm = []
+if with_amd_vk or with_gallium_radeonsi
+  subdir('addrlib')
+  subdir('common')
+  if with_llvm
+    subdir('llvm')
+  else
+    libamd_common_llvm = []
+  endif
 endif
 if with_amd_vk
   subdir('compiler')
index 1e9a39b..e551045 100644 (file)
@@ -84,7 +84,7 @@ endif
 if with_any_intel
   subdir('intel')
 endif
-if with_gallium_radeonsi or with_amd_vk
+if with_gallium_radeonsi or with_amd_vk or with_gallium_r300 or with_gallium_r600
   subdir('amd')
 endif
 if with_any_broadcom