X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Flima%2Fmeson.build;h=01c41c31728cb21fbe2170ef1d9eb6a8febf75a1;hb=8a4b0d852c1f28c302e0df6fa63dbc08a32bc683;hp=b6a197fcc8d9ea3462bc6a2dc4354e69f8868adb;hpb=413242277a2653d12d5ea8d8acba533530281fd6;p=mesa.git diff --git a/src/gallium/drivers/lima/meson.build b/src/gallium/drivers/lima/meson.build index b6a197fcc8d..01c41c31728 100644 --- a/src/gallium/drivers/lima/meson.build +++ b/src/gallium/drivers/lima/meson.build @@ -29,8 +29,7 @@ files_lima = files( 'ir/gp/codegen.h', 'ir/gp/codegen.c', 'ir/gp/reduce_scheduler.c', - 'ir/gp/value_regalloc.c', - 'ir/gp/physical_regalloc.c', + 'ir/gp/regalloc.c', 'ir/gp/disasm.c', 'ir/pp/ppir.h', @@ -40,12 +39,14 @@ files_lima = files( 'ir/pp/scheduler.c', 'ir/pp/instr.c', 'ir/pp/regalloc.c', + 'ir/pp/liveness.c', 'ir/pp/codegen.h', 'ir/pp/codegen.c', 'ir/pp/node_to_instr.c', 'ir/pp/disasm.c', 'ir/lima_nir_lower_uniform_to_scalar.c', + 'ir/lima_nir_split_load_input.c', 'ir/lima_ir.h', @@ -63,17 +64,33 @@ files_lima = files( 'lima_bo.h', 'lima_submit.c', 'lima_submit.h', + 'lima_parser.c', + 'lima_parser.h', 'lima_util.c', 'lima_util.h', 'lima_texture.c', 'lima_texture.h', 'lima_fence.c', 'lima_fence.h', + 'lima_format.h', + 'lima_format.c', +) + +lima_nir_algebraic_c = custom_target( + 'lima_nir_algebraic.c', + input : 'ir/lima_nir_algebraic.py', + output : 'lima_nir_algebraic.c', + command : [ + prog_python, '@INPUT@', + '-p', join_paths(meson.source_root(), 'src/compiler/nir/'), + ], + capture : true, + depend_files : nir_algebraic_py, ) liblima = static_library( 'lima', - files_lima, + files_lima, lima_nir_algebraic_c, include_directories : [ inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers, inc_panfrost @@ -86,3 +103,46 @@ driver_lima = declare_dependency( link_with : [liblima, liblimawinsys, libpanfrost_shared], dependencies : idep_nir, ) + + +lima_compiler = executable( + 'lima_compiler', + files( + 'standalone/lima_compiler_cmdline.c', + 'standalone/glsl.cpp' + ), + include_directories : [ + inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers, inc_mesa, inc_mapi, inc_compiler, + ], + dependencies : [ + idep_nir, + idep_mesautil, + ], + link_with : [ + liblima, + libgallium, + libglsl_standalone, + libpanfrost_shared, + ], + build_by_default : with_tools.contains('lima'), + install : with_tools.contains('lima'), +) + +lima_disasm = executable( + 'lima_disasm', + files( + 'standalone/lima_disasm.c', + ), + include_directories : [ + inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers, inc_mesa, inc_mapi, inc_compiler, + ], + dependencies : [ + idep_mesautil, + ], + link_with : [ + liblima, + libpanfrost_shared, + ], + build_by_default : with_tools.contains('lima'), + install : with_tools.contains('lima'), +)