radeon/vcn: add vcn2.0 encode skeleton
[mesa.git] / src / gallium / drivers / radeonsi / meson.build
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
21 files_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_prim_discard.c',
30 'si_compute.h',
31 'si_compute_blit.c',
32 'si_cp_dma.c',
33 'si_debug.c',
34 'si_descriptors.c',
35 'si_dma.c',
36 'si_dma_cs.c',
37 'si_fence.c',
38 'si_get.c',
39 'si_gfx_cs.c',
40 'si_gpu_load.c',
41 'si_perfcounter.c',
42 'si_pipe.c',
43 'si_pipe.h',
44 'si_pm4.c',
45 'si_pm4.h',
46 'si_public.h',
47 'si_query.c',
48 'si_query.h',
49 'si_shader.c',
50 'si_shader.h',
51 'si_shader_internal.h',
52 'si_shader_nir.c',
53 'si_shader_tgsi_alu.c',
54 'si_shader_tgsi_mem.c',
55 'si_shader_tgsi_setup.c',
56 'si_shaderlib_tgsi.c',
57 'si_state.c',
58 'si_state.h',
59 'si_state_binning.c',
60 'si_state_draw.c',
61 'si_state_msaa.c',
62 'si_state_shaders.c',
63 'si_state_streamout.c',
64 'si_state_viewport.c',
65 'si_test_dma.c',
66 'si_test_dma_perf.c',
67 'si_texture.c',
68 'si_uvd.c',
69 '../radeon/radeon_uvd.c',
70 '../radeon/radeon_uvd.h',
71 '../radeon/radeon_vcn_enc_1_2.c',
72 '../radeon/radeon_vcn_enc_2_0.c',
73 '../radeon/radeon_vcn_enc.c',
74 '../radeon/radeon_vcn_enc.h',
75 '../radeon/radeon_vcn_dec_jpeg.c',
76 '../radeon/radeon_vcn_dec.c',
77 '../radeon/radeon_vcn_dec.h',
78 '../radeon/radeon_uvd_enc_1_1.c',
79 '../radeon/radeon_uvd_enc.c',
80 '../radeon/radeon_uvd_enc.h',
81 '../radeon/radeon_vce_40_2_2.c',
82 '../radeon/radeon_vce_50.c',
83 '../radeon/radeon_vce_52.c',
84 '../radeon/radeon_vce.c',
85 '../radeon/radeon_vce.h',
86 '../radeon/radeon_video.c',
87 '../radeon/radeon_video.h',
88 '../radeon/radeon_winsys.h',
89 )
90
91 si_driinfo_h = custom_target(
92 'si_driinfo.h',
93 input : files(
94 '../../../util/merge_driinfo.py',
95 '../../auxiliary/pipe-loader/driinfo_gallium.h', 'driinfo_radeonsi.h'
96 ),
97 output : 'si_driinfo.h',
98 command : [prog_python, '@INPUT@'],
99 capture : true,
100 )
101
102 libradeonsi = static_library(
103 'radeonsi',
104 [files_libradeonsi, si_driinfo_h, sid_tables_h],
105 include_directories : [
106 inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_amd_common,
107 inc_gallium_drivers,
108 ],
109 c_args : ['-Wstrict-overflow=0', c_vis_args],
110 cpp_args : [cpp_vis_args],
111 dependencies : [dep_llvm, dep_clock, dep_libdrm_radeon, idep_nir_headers, idep_amdgfxregs_h],
112 )
113
114 driver_radeonsi = declare_dependency(
115 compile_args : '-DGALLIUM_RADEONSI',
116 sources : si_driinfo_h,
117 link_with : [
118 libradeonsi, libradeonwinsys, libamdgpuwinsys, libamd_common,
119 ],
120 dependencies : idep_nir,
121 )