Path: blob/21.2-virgl/src/gallium/drivers/radeonsi/meson.build
4570 views
# Copyright © 2017 Dylan Baker12# Permission is hereby granted, free of charge, to any person obtaining a copy3# of this software and associated documentation files (the "Software"), to deal4# in the Software without restriction, including without limitation the rights5# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell6# copies of the Software, and to permit persons to whom the Software is7# furnished to do so, subject to the following conditions:89# The above copyright notice and this permission notice shall be included in10# all copies or substantial portions of the Software.1112# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR13# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,14# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE15# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER16# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,17# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE18# SOFTWARE.1920files_libradeonsi = files(21'driinfo_radeonsi.h',22'gfx10_query.c',23'gfx10_shader_ngg.c',24'si_blit.c',25'si_buffer.c',26'si_build_pm4.h',27'si_clear.c',28'si_compute.c',29'si_compute_prim_discard.c',30'si_compute.h',31'si_compute_blit.c',32'si_cp_dma.c',33'si_cp_reg_shadowing.c',34'si_debug.c',35'si_descriptors.c',36'si_fence.c',37'si_get.c',38'si_gfx_cs.c',39'si_gpu_load.c',40'si_perfcounter.c',41'si_pipe.c',42'si_pipe.h',43'si_pm4.c',44'si_pm4.h',45'si_public.h',46'si_query.c',47'si_query.h',48'si_nir_optim.c',49'si_shader.c',50'si_shader.h',51'si_shader_internal.h',52'si_shader_llvm.c',53'si_shader_llvm_gs.c',54'si_shader_llvm_ps.c',55'si_shader_llvm_resources.c',56'si_shader_llvm_tess.c',57'si_shader_llvm_vs.c',58'si_shader_nir.c',59'si_shaderlib_nir.c',60'si_shaderlib_tgsi.c',61'si_sqtt.c',62'si_state.c',63'si_state.h',64'si_state_binning.c',65'si_state_msaa.c',66'si_state_shaders.c',67'si_state_streamout.c',68'si_state_viewport.c',69'si_test_blit.c',70'si_test_dma_perf.c',71'si_texture.c',72'si_uvd.c',73'../radeon/radeon_uvd.c',74'../radeon/radeon_uvd.h',75'../radeon/radeon_vcn_enc_1_2.c',76'../radeon/radeon_vcn_enc_2_0.c',77'../radeon/radeon_vcn_enc_3_0.c',78'../radeon/radeon_vcn_enc.c',79'../radeon/radeon_vcn_enc.h',80'../radeon/radeon_vcn_dec_jpeg.c',81'../radeon/radeon_vcn_dec.c',82'../radeon/radeon_vcn_dec.h',83'../radeon/radeon_vcn_av1_default.h',84'../radeon/radeon_uvd_enc_1_1.c',85'../radeon/radeon_uvd_enc.c',86'../radeon/radeon_uvd_enc.h',87'../radeon/radeon_vce_40_2_2.c',88'../radeon/radeon_vce_50.c',89'../radeon/radeon_vce_52.c',90'../radeon/radeon_vce.c',91'../radeon/radeon_vce.h',92'../radeon/radeon_video.c',93'../radeon/radeon_video.h',94'../radeon/radeon_winsys.h',95)9697radeonsi_include_dirs = [inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_amd_common,98inc_amd_common_llvm, inc_gallium_drivers]99radeonsi_deps = [dep_llvm, dep_clock, dep_libdrm_radeon, idep_nir_headers, idep_amdgfxregs_h, idep_mesautil]100101radeonsi_gfx_libs = []102foreach ver : ['6', '7', '8', '9', '10', '103']103radeonsi_gfx_libs += static_library(104'radeonsi_gfx@0@'.format(ver),105['si_state_draw.cpp'],106include_directories : radeonsi_include_dirs,107cpp_args : ['-DGFX_VER=@0@'.format(ver)],108gnu_symbol_visibility : 'hidden',109dependencies : radeonsi_deps,110)111endforeach112113libradeonsi = static_library(114'radeonsi',115[files_libradeonsi, sid_tables_h],116include_directories : radeonsi_include_dirs,117gnu_symbol_visibility : 'hidden',118dependencies : radeonsi_deps,119)120121driver_radeonsi = declare_dependency(122compile_args : '-DGALLIUM_RADEONSI',123link_with : radeonsi_gfx_libs + [124libradeonsi, libradeonwinsys, libamdgpuwinsys, libamd_common, libamd_common_llvm, libgalliumvl125],126dependencies : idep_nir,127)128129130