Path: blob/21.2-virgl/src/gallium/drivers/r600/meson.build
4570 views
# Copyright © 2017 Intel Corporation12# 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_r600 = files(21'r600d_common.h',22'compute_memory_pool.c',23'compute_memory_pool.h',24'eg_asm.c',25'eg_debug.c',26'eg_sq.h',27'evergreen_compute.c',28'evergreen_compute.h',29'evergreen_compute_internal.h',30'evergreend.h',31'evergreen_hw_context.c',32'evergreen_state.c',33'r600_asm.c',34'r600_asm.h',35'r600_blit.c',36'r600d.h',37'r600_dump.c',38'r600_dump.h',39'r600_formats.h',40'r600_hw_context.c',41'r600_isa.c',42'r600_isa.h',43'r600_opcodes.h',44'r600_pipe.c',45'r600_pipe.h',46'r600_public.h',47'r600_shader.c',48'r600_shader.h',49'r600_sq.h',50'r600_state.c',51'r600_state_common.c',52'r600_uvd.c',53'r700_asm.c',54'r700_sq.h',55'cayman_msaa.c',56'r600_buffer_common.c',57'r600_cs.h',58'r600_gpu_load.c',59'r600_perfcounter.c',60'r600_pipe_common.c',61'r600_pipe_common.h',62'r600_query.c',63'r600_query.h',64'r600_streamout.c',65'r600_test_dma.c',66'r600_texture.c',67'r600_viewport.c',68'radeon_uvd.c',69'radeon_uvd.h',70'radeon_vce.c',71'radeon_vce.h',72'radeon_video.c',73'radeon_video.h',74'sb/sb_bc_builder.cpp',75'sb/sb_bc_decoder.cpp',76'sb/sb_bc_dump.cpp',77'sb/sb_bc_finalize.cpp',78'sb/sb_bc.h',79'sb/sb_bc_parser.cpp',80'sb/sb_context.cpp',81'sb/sb_core.cpp',82'sb/sb_dce_cleanup.cpp',83'sb/sb_def_use.cpp',84'sb/sb_dump.cpp',85'sb/sb_expr.cpp',86'sb/sb_expr.h',87'sb/sb_gcm.cpp',88'sb/sb_gvn.cpp',89'sb/sb_if_conversion.cpp',90'sb/sb_ir.cpp',91'sb/sb_ir.h',92'sb/sb_liveness.cpp',93'sb/sb_pass.cpp',94'sb/sb_pass.h',95'sb/sb_peephole.cpp',96'sb/sb_psi_ops.cpp',97'sb/sb_public.h',98'sb/sb_ra_checker.cpp',99'sb/sb_ra_coalesce.cpp',100'sb/sb_ra_init.cpp',101'sb/sb_sched.cpp',102'sb/sb_sched.h',103'sb/sb_shader.cpp',104'sb/sb_shader.h',105'sb/sb_ssa_builder.cpp',106'sb/sb_valtable.cpp',107'sfn/sfn_alu_defines.cpp',108'sfn/sfn_alu_defines.h',109'sfn/sfn_callstack.cpp',110'sfn/sfn_callstack.h',111'sfn/sfn_conditionaljumptracker.cpp',112'sfn/sfn_conditionaljumptracker.h',113'sfn/sfn_defines.h',114'sfn/sfn_debug.cpp',115'sfn/sfn_debug.h',116'sfn/sfn_emitaluinstruction.cpp',117'sfn/sfn_emitaluinstruction.h',118'sfn/sfn_emitinstruction.cpp',119'sfn/sfn_emitinstruction.h',120'sfn/sfn_emitssboinstruction.cpp',121'sfn/sfn_emitssboinstruction.h',122'sfn/sfn_emittexinstruction.cpp',123'sfn/sfn_emittexinstruction.h',124'sfn/sfn_emitinstruction.h',125'sfn/sfn_instruction_alu.cpp',126'sfn/sfn_instruction_alu.h',127'sfn/sfn_instruction_base.cpp',128'sfn/sfn_instruction_base.h',129'sfn/sfn_instruction_block.cpp',130'sfn/sfn_instruction_block.h',131'sfn/sfn_instruction_cf.cpp',132'sfn/sfn_instruction_cf.h',133'sfn/sfn_instruction_export.cpp',134'sfn/sfn_instruction_export.h',135'sfn/sfn_instruction_fetch.cpp',136'sfn/sfn_instruction_fetch.h',137'sfn/sfn_instruction_gds.cpp',138'sfn/sfn_instruction_gds.h',139'sfn/sfn_instruction_lds.cpp',140'sfn/sfn_instruction_lds.h',141'sfn/sfn_instruction_misc.cpp',142'sfn/sfn_instruction_misc.h',143'sfn/sfn_instruction_tex.cpp',144'sfn/sfn_instruction_tex.h',145'sfn/sfn_ir_to_assembly.cpp',146'sfn/sfn_ir_to_assembly.h',147'sfn/sfn_liverange.cpp',148'sfn/sfn_liverange.h',149'sfn/sfn_nir.cpp',150'sfn/sfn_nir.h',151'sfn/sfn_nir_legalize_image_load_store.cpp',152'sfn/sfn_nir_lower_64bit.cpp',153'sfn/sfn_nir_lower_alu.cpp',154'sfn/sfn_nir_lower_alu.h',155'sfn/sfn_nir_lower_fs_out_to_vector.cpp',156'sfn/sfn_nir_lower_fs_out_to_vector.h',157'sfn/sfn_nir_lower_tess_io.cpp',158'sfn/sfn_nir_vectorize_vs_inputs.c',159'sfn/sfn_shader_base.cpp',160'sfn/sfn_shader_base.h',161'sfn/sfn_shader_compute.cpp',162'sfn/sfn_shader_compute.h',163'sfn/sfn_shader_fragment.cpp',164'sfn/sfn_shader_fragment.h',165'sfn/sfn_shader_geometry.cpp',166'sfn/sfn_shader_geometry.h',167'sfn/sfn_shader_tcs.cpp',168'sfn/sfn_shader_tcs.h',169'sfn/sfn_shader_tess_eval.cpp',170'sfn/sfn_shader_tess_eval.h',171'sfn/sfn_shader_vertex.cpp',172'sfn/sfn_shader_vertex.h',173'sfn/sfn_shaderio.cpp',174'sfn/sfn_shaderio.h',175'sfn/sfn_value.cpp',176'sfn/sfn_value.h',177'sfn/sfn_value_gpr.cpp',178'sfn/sfn_value_gpr.h',179'sfn/sfn_valuepool.cpp',180'sfn/sfn_valuepool.h',181'sfn/sfn_vertexstageexport.cpp',182'sfn/sfn_vertexstageexport.h',183)184185egd_tables_h = custom_target(186'egd_tables.h',187input : ['egd_tables.py', 'evergreend.h'],188output : 'egd_tables.h',189command : [prog_python, '@INPUT@'],190capture : true,191)192193r600_c_args = []194if with_gallium_opencl195r600_c_args += '-DHAVE_OPENCL'196endif197198libr600 = static_library(199'r600',200[files_r600, egd_tables_h],201c_args : [r600_c_args, '-Wstrict-overflow=0'],202gnu_symbol_visibility : 'hidden',203include_directories : [204inc_src, inc_mapi, inc_mesa, inc_include, inc_compiler, inc_gallium, inc_gallium_aux, inc_amd_common,205inc_gallium_drivers,206],207dependencies: [dep_libdrm_radeon, dep_elf, dep_llvm, idep_nir, idep_nir_headers],208)209210driver_r600 = declare_dependency(211compile_args : '-DGALLIUM_R600',212link_with : [libr600, libmesa_gallium, libradeonwinsys],213)214215216