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