1# Copyright © 2017 Dylan Baker 2 3# Permission is hereby granted, free of charge, to any person obtaining a copy 4# of this software and associated documentation files (the "Software"), to deal 5# in the Software without restriction, including without limitation the rights 6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7# copies of the Software, and to permit persons to whom the Software is 8# furnished to do so, subject to the following conditions: 9 10# The above copyright notice and this permission notice shall be included in 11# all copies or substantial portions of the Software. 12 13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19# SOFTWARE. 20 21files_libradeonsi = files( 22 'cik_sdma.c', 23 'driinfo_radeonsi.h', 24 'si_blit.c', 25 'si_buffer.c', 26 'si_build_pm4.h', 27 'si_clear.c', 28 'si_compute.c', 29 'si_compute.h', 30 'si_compute_blit.c', 31 'si_cp_dma.c', 32 'si_debug.c', 33 'si_descriptors.c', 34 'si_dma.c', 35 'si_dma_cs.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_shader.c', 49 'si_shader.h', 50 'si_shader_internal.h', 51 'si_shader_nir.c', 52 'si_shader_tgsi_alu.c', 53 'si_shader_tgsi_mem.c', 54 'si_shader_tgsi_setup.c', 55 'si_shaderlib_tgsi.c', 56 'si_state.c', 57 'si_state.h', 58 'si_state_binning.c', 59 'si_state_draw.c', 60 'si_state_msaa.c', 61 'si_state_shaders.c', 62 'si_state_streamout.c', 63 'si_state_viewport.c', 64 'si_test_dma.c', 65 'si_test_dma_perf.c', 66 'si_texture.c', 67 'si_uvd.c', 68 '../radeon/radeon_uvd.c', 69 '../radeon/radeon_uvd.h', 70 '../radeon/radeon_vcn_enc_1_2.c', 71 '../radeon/radeon_vcn_enc.c', 72 '../radeon/radeon_vcn_enc.h', 73 '../radeon/radeon_vcn_dec_jpeg.c', 74 '../radeon/radeon_vcn_dec.c', 75 '../radeon/radeon_vcn_dec.h', 76 '../radeon/radeon_uvd_enc_1_1.c', 77 '../radeon/radeon_uvd_enc.c', 78 '../radeon/radeon_uvd_enc.h', 79 '../radeon/radeon_vce_40_2_2.c', 80 '../radeon/radeon_vce_50.c', 81 '../radeon/radeon_vce_52.c', 82 '../radeon/radeon_vce.c', 83 '../radeon/radeon_vce.h', 84 '../radeon/radeon_video.c', 85 '../radeon/radeon_video.h', 86 '../radeon/radeon_winsys.h', 87) 88 89si_driinfo_h = custom_target( 90 'si_driinfo.h', 91 input : files( 92 '../../../util/merge_driinfo.py', 93 '../../auxiliary/pipe-loader/driinfo_gallium.h', 'driinfo_radeonsi.h' 94 ), 95 output : 'si_driinfo.h', 96 command : [prog_python, '@INPUT@'], 97 capture : true, 98) 99 100libradeonsi = static_library( 101 'radeonsi', 102 [files_libradeonsi, si_driinfo_h, sid_tables_h], 103 include_directories : [ 104 inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_amd_common, 105 inc_gallium_drivers, 106 ], 107 c_args : ['-Wstrict-overflow=0', c_vis_args], 108 cpp_args : [cpp_vis_args], 109 dependencies : [dep_llvm, dep_clock, dep_libdrm_radeon, idep_nir_headers], 110) 111 112driver_radeonsi = declare_dependency( 113 compile_args : '-DGALLIUM_RADEONSI', 114 sources : si_driinfo_h, 115 link_with : [ 116 libradeonsi, libradeonwinsys, libamdgpuwinsys, libamd_common, 117 ], 118 dependencies : idep_nir, 119) 120