X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fcompiler%2Fnir%2Fmeson.build;h=f74a591926aabc70910c12b200f11e9323bc2719;hb=ee2f21b10dc786c83ff5dad716502429f6b26fb9;hp=6ffb948f0498262920b549362e3274864999c164;hpb=7ab4e4dd963028a4620ffc00c38988da4abc1860;p=mesa.git diff --git a/src/compiler/nir/meson.build b/src/compiler/nir/meson.build index 6ffb948f049..f74a591926a 100644 --- a/src/compiler/nir/meson.build +++ b/src/compiler/nir/meson.build @@ -94,6 +94,7 @@ files_libnir = files( 'nir_control_flow.c', 'nir_control_flow.h', 'nir_control_flow_private.h', + 'nir_convert_ycbcr.c', 'nir_deref.c', 'nir_deref.h', 'nir_divergence_analysis.c', @@ -118,19 +119,23 @@ files_libnir = files( 'nir_lower_array_deref_of_vec.c', 'nir_lower_atomics_to_ssbo.c', 'nir_lower_bitmap.c', + 'nir_lower_bool_to_bitsize.c', 'nir_lower_bool_to_float.c', 'nir_lower_bool_to_int32.c', 'nir_lower_clamp_color_outputs.c', 'nir_lower_clip.c', 'nir_lower_clip_cull_distance_arrays.c', + 'nir_lower_clip_disable.c', 'nir_lower_clip_halfz.c', 'nir_lower_variable_initializers.c', + 'nir_lower_discard_to_demote.c', 'nir_lower_double_ops.c', 'nir_lower_drawpixels.c', 'nir_lower_fb_read.c', 'nir_lower_flatshade.c', 'nir_lower_flrp.c', 'nir_lower_fragcoord_wtrans.c', + 'nir_lower_fragcolor.c', 'nir_lower_frexp.c', 'nir_lower_global_vars_to_local.c', 'nir_lower_gs_intrinsics.c', @@ -147,6 +152,8 @@ files_libnir = files( 'nir_lower_io_to_temporaries.c', 'nir_lower_io_to_scalar.c', 'nir_lower_io_to_vector.c', + 'nir_lower_mediump_outputs.c', + 'nir_lower_memory_model.c', 'nir_lower_non_uniform_access.c', 'nir_lower_packing.c', 'nir_lower_passthrough_edgeflags.c', @@ -170,12 +177,14 @@ files_libnir = files( 'nir_lower_viewport_transform.c', 'nir_lower_wpos_center.c', 'nir_lower_wpos_ytransform.c', + 'nir_lower_wrmasks.c', 'nir_lower_bit_size.c', 'nir_lower_uniforms_to_ubo.c', 'nir_metadata.c', 'nir_move_vec_src_uses_to_dest.c', 'nir_normalize_cubemap_coords.c', 'nir_opt_access.c', + 'nir_opt_barriers.c', 'nir_opt_combine_stores.c', 'nir_opt_comparison_pre.c', 'nir_opt_conditional_discard.c', @@ -198,7 +207,7 @@ files_libnir = files( 'nir_opt_peephole_select.c', 'nir_opt_rematerialize_compares.c', 'nir_opt_remove_phis.c', - 'nir_opt_shrink_load.c', + 'nir_opt_shrink_vectors.c', 'nir_opt_sink.c', 'nir_opt_trivial_continues.c', 'nir_opt_undef.c', @@ -212,6 +221,7 @@ files_libnir = files( 'nir_remove_dead_variables.c', 'nir_repair_ssa.c', 'nir_schedule.c', + 'nir_schedule.h', 'nir_search.c', 'nir_search.h', 'nir_search_helpers.h', @@ -224,6 +234,7 @@ files_libnir = files( 'nir_to_lcssa.c', 'nir_validate.c', 'nir_vla.h', + 'nir_vulkan.h', 'nir_worklist.c', 'nir_worklist.h', 'nir_xfb_info.h', @@ -250,8 +261,9 @@ _libnir = static_library( [files_libnir, spirv_info_c, nir_opt_algebraic_c, nir_opcodes_c, nir_opcodes_h, nir_constant_expressions_c, nir_builder_opcodes_h, vtn_gather_types_c, nir_intrinsics_c, nir_intrinsics_h], - include_directories : [inc_common, inc_compiler, include_directories('../spirv')], - c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args], + include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_compiler, include_directories('../spirv')], + c_args : [c_msvc_compat_args, no_override_init_args], + gnu_symbol_visibility : 'hidden', link_with : libcompiler, build_by_default : false, ) @@ -276,8 +288,9 @@ if with_tests executable( 'nir_builder_test', files('tests/builder_tests.cpp'), - cpp_args : [cpp_vis_args, cpp_msvc_compat_args], - include_directories : [inc_common], + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', + include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux], dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil], ), suite : ['compiler', 'nir'], @@ -288,8 +301,9 @@ if with_tests executable( 'nir_control_flow_test', files('tests/control_flow_tests.cpp'), - cpp_args : [cpp_vis_args, cpp_msvc_compat_args], - include_directories : [inc_common], + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', + include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux], dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil], ), suite : ['compiler', 'nir'], @@ -300,8 +314,9 @@ if with_tests executable( 'nir_vars_test', files('tests/vars_tests.cpp'), - cpp_args : [cpp_vis_args, cpp_msvc_compat_args], - include_directories : [inc_common], + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', + include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux], dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil], ), suite : ['compiler', 'nir'], @@ -321,8 +336,9 @@ if with_tests executable( 'negative_equal', files('tests/negative_equal_tests.cpp'), - c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args], - include_directories : [inc_common], + c_args : [c_msvc_compat_args, no_override_init_args], + gnu_symbol_visibility : 'hidden', + include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux], dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil], ), suite : ['compiler', 'nir'], @@ -333,8 +349,9 @@ if with_tests executable( 'comparison_pre', files('tests/comparison_pre_tests.cpp'), - c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args], - include_directories : [inc_common], + c_args : [c_msvc_compat_args, no_override_init_args], + gnu_symbol_visibility : 'hidden', + include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux], dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil], ), suite : ['compiler', 'nir'], @@ -345,8 +362,9 @@ if with_tests executable( 'load_store_vectorizer', files('tests/load_store_vectorizer_tests.cpp'), - cpp_args : [cpp_vis_args, cpp_msvc_compat_args], - include_directories : [inc_common], + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', + include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux], dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil], ), suite : ['compiler', 'nir'], @@ -358,8 +376,22 @@ if with_tests executable( 'nir_serialize_test', files('tests/serialize_tests.cpp'), - cpp_args : [cpp_vis_args, cpp_msvc_compat_args], - include_directories : [inc_common], + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', + include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux], + dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil], + ), + suite : ['compiler', 'nir'], + ) + + test( + 'nir_opt_if', + executable( + 'nir_opt_if_tests', + files('tests/opt_if_tests.cpp'), + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', + include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux], dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil], ), suite : ['compiler', 'nir'],