meson: build radeonsi with aco
authorQiang Yu <yuq825@gmail.com>
Wed, 5 Apr 2023 11:44:19 +0000 (19:44 +0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 15 May 2023 02:01:10 +0000 (02:01 +0000)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22573>

src/amd/meson.build
src/gallium/drivers/radeonsi/meson.build

index f394f38..f1e3781 100644 (file)
@@ -28,9 +28,10 @@ if with_amd_vk or with_gallium_radeonsi
   else
     libamd_common_llvm = []
   endif
+  subdir('compiler')
 endif
+
 if with_amd_vk
-  subdir('compiler')
   subdir('vulkan')
   if with_aco_tests
     subdir('compiler/tests')
index 806d863..e7da90d 100644 (file)
@@ -105,7 +105,7 @@ files_libradeonsi = files(
 
 radeonsi_include_dirs = [inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_amd_common,
                          inc_amd_common_llvm, inc_gallium_drivers]
-radeonsi_deps = [dep_llvm, dep_clock, dep_libdrm_radeon, idep_nir_headers, idep_amdgfxregs_h, idep_mesautil]
+radeonsi_deps = [dep_llvm, dep_clock, dep_libdrm_radeon, idep_nir_headers, idep_amdgfxregs_h, idep_mesautil, idep_aco]
 
 radeonsi_gfx_libs = []
 foreach ver : ['6', '7', '8', '9', '10', '103', '11']