X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fcompiler%2Fnir%2Fmeson.build;h=b5f27ad667b1ec4b155e413f0a3a0448bacdd3af;hb=d8d18516b0aa81f6791889bab7ce14703e65d8b4;hp=8a85d119530c8c0fc4d8ffbfa39f3c21b7c36bc8;hpb=7a5a986ddd88487a42847f00f46f7bb0a542c988;p=mesa.git diff --git a/src/compiler/nir/meson.build b/src/compiler/nir/meson.build index 8a85d119530..b5f27ad667b 100644 --- a/src/compiler/nir/meson.build +++ b/src/compiler/nir/meson.build @@ -72,6 +72,14 @@ spirv_info_c = custom_target( command : [prog_python2, '@INPUT0@', '@INPUT1@', '@OUTPUT@'], ) +vtn_gather_types_c = custom_target( + 'vtn_gather_types.c', + input : files('../spirv/vtn_gather_types_c.py', + '../spirv/spirv.core.grammar.json'), + output : 'vtn_gather_types.c', + command : [prog_python2, '@INPUT0@', '@INPUT1@', '@OUTPUT@'], +) + files_libnir = files( 'nir.c', 'nir.h', @@ -90,11 +98,13 @@ files_libnir = files( 'nir_instr_set.h', 'nir_intrinsics.c', 'nir_intrinsics.h', + 'nir_linking_helpers.c', 'nir_liveness.c', 'nir_loop_analyze.c', 'nir_loop_analyze.h', 'nir_lower_64bit_packing.c', 'nir_lower_alu_to_scalar.c', + 'nir_lower_alpha_test.c', 'nir_lower_atomics.c', 'nir_lower_atomics_to_ssbo.c', 'nir_lower_bitmap.c', @@ -112,17 +122,18 @@ files_libnir = files( 'nir_lower_indirect_derefs.c', 'nir_lower_int64.c', 'nir_lower_io.c', + 'nir_lower_io_arrays_to_elements.c', 'nir_lower_io_to_temporaries.c', 'nir_lower_io_to_scalar.c', 'nir_lower_io_types.c', 'nir_lower_passthrough_edgeflags.c', 'nir_lower_patch_vertices.c', 'nir_lower_phis_to_scalar.c', - 'nir_lower_read_invocation_to_scalar.c', 'nir_lower_regs_to_ssa.c', 'nir_lower_returns.c', 'nir_lower_samplers.c', 'nir_lower_samplers_as_deref.c', + 'nir_lower_subgroups.c', 'nir_lower_system_values.c', 'nir_lower_tex.c', 'nir_lower_to_source_mods.c', @@ -162,6 +173,8 @@ files_libnir = files( 'nir_search.c', 'nir_search.h', 'nir_search_helpers.h', + 'nir_serialize.c', + 'nir_serialize.h', 'nir_split_var_copies.c', 'nir_sweep.c', 'nir_to_lcssa.c', @@ -184,22 +197,38 @@ files_libnir = files( libnir = static_library( 'nir', [files_libnir, spirv_info_c, nir_opt_algebraic_c, nir_opcodes_c, - nir_opcodes_h, nir_constant_expressions_c, nir_builder_opcodes_h], + nir_opcodes_h, nir_constant_expressions_c, nir_builder_opcodes_h, + vtn_gather_types_c], include_directories : [inc_common, inc_compiler, include_directories('../spirv')], c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args], link_with : libcompiler, build_by_default : false, ) +# Headers-only dependency +idep_nir_headers = declare_dependency( + sources : [nir_opcodes_h, nir_builder_opcodes_h], + include_directories : include_directories('.'), +) + +# Also link with nir +idep_nir = declare_dependency( + dependencies : idep_nir_headers, + link_with : libnir, +) + +nir_algebraic_py = files('nir_algebraic.py') + if with_tests - nir_control_flow_test = executable( - 'nir_control_flow_test', - [files('tests/control_flow_tests.cpp'), nir_opcodes_h], - c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args], - include_directories : [inc_common], - dependencies : [dep_thread, idep_gtest], - link_with : [libmesa_util, libnir], + test( + 'nir_control_flow', + executable( + 'nir_control_flow_test', + files('tests/control_flow_tests.cpp'), + c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args], + include_directories : [inc_common], + dependencies : [dep_thread, idep_gtest, idep_nir], + link_with : libmesa_util, + ) ) - - test('nir_control_flow', nir_control_flow_test) endif