radeonsi: kill point size VS output if it's not used by the rasterizer
[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 'gfx10_query.c',
25 'gfx10_shader_ngg.c',
26 'si_blit.c',
27 'si_buffer.c',
28 'si_build_pm4.h',
29 'si_clear.c',
30 'si_compute.c',
31 'si_compute_prim_discard.c',
32 'si_compute.h',
33 'si_compute_blit.c',
34 'si_cp_dma.c',
35 'si_cp_reg_shadowing.c',
36 'si_debug.c',
37 'si_descriptors.c',
38 'si_dma_cs.c',
39 'si_fence.c',
40 'si_get.c',
41 'si_gfx_cs.c',
42 'si_gpu_load.c',
43 'si_perfcounter.c',
44 'si_pipe.c',
45 'si_pipe.h',
46 'si_pm4.c',
47 'si_pm4.h',
48 'si_public.h',
49 'si_query.c',
50 'si_query.h',
51 'si_shader.c',
52 'si_shader.h',
53 'si_shader_internal.h',
54 'si_shader_llvm.c',
55 'si_shader_llvm_gs.c',
56 'si_shader_llvm_ps.c',
57 'si_shader_llvm_resources.c',
58 'si_shader_llvm_tess.c',
59 'si_shader_llvm_vs.c',
60 'si_shader_nir.c',
61 'si_shaderlib_tgsi.c',
62 'si_state.c',
63 'si_state.h',
64 'si_state_binning.c',
65 'si_state_draw.c',
66 'si_state_msaa.c',
67 'si_state_shaders.c',
68 'si_state_streamout.c',
69 'si_state_viewport.c',
70 'si_test_dma.c',
71 'si_test_dma_perf.c',
72 'si_texture.c',
73 'si_uvd.c',
74 '../radeon/radeon_uvd.c',
75 '../radeon/radeon_uvd.h',
76 '../radeon/radeon_vcn_enc_1_2.c',
77 '../radeon/radeon_vcn_enc_2_0.c',
78 '../radeon/radeon_vcn_enc_3_0.c',
79 '../radeon/radeon_vcn_enc.c',
80 '../radeon/radeon_vcn_enc.h',
81 '../radeon/radeon_vcn_dec_jpeg.c',
82 '../radeon/radeon_vcn_dec.c',
83 '../radeon/radeon_vcn_dec.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 )
96
97 si_driinfo_h = custom_target(
98 'si_driinfo.h',
99 input : files(
100 '../../../util/merge_driinfo.py',
101 '../../auxiliary/pipe-loader/driinfo_gallium.h', 'driinfo_radeonsi.h'
102 ),
103 output : 'si_driinfo.h',
104 command : [prog_python, '@INPUT@'],
105 capture : true,
106 )
107
108 libradeonsi = static_library(
109 'radeonsi',
110 [files_libradeonsi, si_driinfo_h, sid_tables_h],
111 include_directories : [
112 inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_amd_common, inc_amd_common_llvm,
113 inc_gallium_drivers,
114 ],
115 c_args : ['-Wstrict-overflow=0'],
116 gnu_symbol_visibility : 'hidden',
117 dependencies : [dep_llvm, dep_clock, dep_libdrm_radeon, idep_nir_headers, idep_amdgfxregs_h],
118 )
119
120 driver_radeonsi = declare_dependency(
121 compile_args : '-DGALLIUM_RADEONSI',
122 sources : si_driinfo_h,
123 link_with : [
124 libradeonsi, libradeonwinsys, libamdgpuwinsys, libamd_common, libamd_common_llvm, libgalliumvl
125 ],
126 dependencies : idep_nir,
127 )