Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/src/gallium/drivers/freedreno/meson.build
4570 views
1
# Copyright © 2017 Rob Clark
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_libfreedreno = files(
22
'freedreno_autotune.c',
23
'freedreno_autotune.h',
24
'freedreno_batch.c',
25
'freedreno_batch.h',
26
'freedreno_batch_cache.c',
27
'freedreno_batch_cache.h',
28
'freedreno_blitter.c',
29
'freedreno_blitter.h',
30
'freedreno_context.c',
31
'freedreno_context.h',
32
'freedreno_draw.c',
33
'freedreno_draw.h',
34
'freedreno_fence.c',
35
'freedreno_fence.h',
36
'freedreno_gmem.c',
37
'freedreno_gmem.h',
38
'freedreno_program.c',
39
'freedreno_program.h',
40
'freedreno_query.c',
41
'freedreno_query.h',
42
'freedreno_query_acc.c',
43
'freedreno_query_acc.h',
44
'freedreno_query_hw.c',
45
'freedreno_query_hw.h',
46
'freedreno_query_sw.c',
47
'freedreno_query_sw.h',
48
'freedreno_resource.c',
49
'freedreno_resource.h',
50
'freedreno_screen.c',
51
'freedreno_screen.h',
52
'freedreno_state.c',
53
'freedreno_state.h',
54
'freedreno_surface.c',
55
'freedreno_surface.h',
56
'freedreno_texture.c',
57
'freedreno_texture.h',
58
'freedreno_util.c',
59
'freedreno_util.h',
60
'a2xx/fd2_blend.c',
61
'a2xx/fd2_blend.h',
62
'a2xx/fd2_context.c',
63
'a2xx/fd2_context.h',
64
'a2xx/fd2_draw.c',
65
'a2xx/fd2_draw.h',
66
'a2xx/fd2_emit.c',
67
'a2xx/fd2_emit.h',
68
'a2xx/fd2_gmem.c',
69
'a2xx/fd2_gmem.h',
70
'a2xx/fd2_program.c',
71
'a2xx/fd2_program.h',
72
'a2xx/fd2_query.c',
73
'a2xx/fd2_query.h',
74
'a2xx/fd2_rasterizer.c',
75
'a2xx/fd2_rasterizer.h',
76
'a2xx/fd2_resource.c',
77
'a2xx/fd2_resource.h',
78
'a2xx/fd2_screen.c',
79
'a2xx/fd2_screen.h',
80
'a2xx/fd2_texture.c',
81
'a2xx/fd2_texture.h',
82
'a2xx/fd2_util.c',
83
'a2xx/fd2_util.h',
84
'a2xx/fd2_zsa.c',
85
'a2xx/fd2_zsa.h',
86
'a2xx/ir2.c',
87
'a2xx/ir2.h',
88
'a2xx/ir2_assemble.c',
89
'a2xx/ir2_cp.c',
90
'a2xx/ir2_nir.c',
91
'a2xx/ir2_private.h',
92
'a2xx/ir2_ra.c',
93
'a3xx/fd3_blend.c',
94
'a3xx/fd3_blend.h',
95
'a3xx/fd3_context.c',
96
'a3xx/fd3_context.h',
97
'a3xx/fd3_draw.c',
98
'a3xx/fd3_draw.h',
99
'a3xx/fd3_emit.c',
100
'a3xx/fd3_emit.h',
101
'a3xx/fd3_format.c',
102
'a3xx/fd3_format.h',
103
'a3xx/fd3_gmem.c',
104
'a3xx/fd3_gmem.h',
105
'a3xx/fd3_program.c',
106
'a3xx/fd3_program.h',
107
'a3xx/fd3_query.c',
108
'a3xx/fd3_query.h',
109
'a3xx/fd3_rasterizer.c',
110
'a3xx/fd3_rasterizer.h',
111
'a3xx/fd3_resource.c',
112
'a3xx/fd3_resource.h',
113
'a3xx/fd3_screen.c',
114
'a3xx/fd3_screen.h',
115
'a3xx/fd3_texture.c',
116
'a3xx/fd3_texture.h',
117
'a3xx/fd3_zsa.c',
118
'a3xx/fd3_zsa.h',
119
'a4xx/fd4_blend.c',
120
'a4xx/fd4_blend.h',
121
'a4xx/fd4_context.c',
122
'a4xx/fd4_context.h',
123
'a4xx/fd4_draw.c',
124
'a4xx/fd4_draw.h',
125
'a4xx/fd4_emit.c',
126
'a4xx/fd4_emit.h',
127
'a4xx/fd4_format.c',
128
'a4xx/fd4_format.h',
129
'a4xx/fd4_gmem.c',
130
'a4xx/fd4_gmem.h',
131
'a4xx/fd4_program.c',
132
'a4xx/fd4_program.h',
133
'a4xx/fd4_query.c',
134
'a4xx/fd4_query.h',
135
'a4xx/fd4_rasterizer.c',
136
'a4xx/fd4_rasterizer.h',
137
'a4xx/fd4_resource.c',
138
'a4xx/fd4_resource.h',
139
'a4xx/fd4_screen.c',
140
'a4xx/fd4_screen.h',
141
'a4xx/fd4_texture.c',
142
'a4xx/fd4_texture.h',
143
'a4xx/fd4_zsa.c',
144
'a4xx/fd4_zsa.h',
145
'a5xx/fd5_blend.c',
146
'a5xx/fd5_blend.h',
147
'a5xx/fd5_blitter.c',
148
'a5xx/fd5_blitter.h',
149
'a5xx/fd5_compute.c',
150
'a5xx/fd5_compute.h',
151
'a5xx/fd5_context.c',
152
'a5xx/fd5_context.h',
153
'a5xx/fd5_draw.c',
154
'a5xx/fd5_draw.h',
155
'a5xx/fd5_emit.c',
156
'a5xx/fd5_emit.h',
157
'a5xx/fd5_format.c',
158
'a5xx/fd5_format.h',
159
'a5xx/fd5_gmem.c',
160
'a5xx/fd5_gmem.h',
161
'a5xx/fd5_image.c',
162
'a5xx/fd5_image.h',
163
'a5xx/fd5_program.c',
164
'a5xx/fd5_program.h',
165
'a5xx/fd5_query.c',
166
'a5xx/fd5_query.h',
167
'a5xx/fd5_rasterizer.c',
168
'a5xx/fd5_rasterizer.h',
169
'a5xx/fd5_resource.c',
170
'a5xx/fd5_resource.h',
171
'a5xx/fd5_screen.c',
172
'a5xx/fd5_screen.h',
173
'a5xx/fd5_texture.c',
174
'a5xx/fd5_texture.h',
175
'a5xx/fd5_zsa.c',
176
'a5xx/fd5_zsa.h',
177
'a6xx/fd6_blend.c',
178
'a6xx/fd6_blend.h',
179
'a6xx/fd6_blitter.c',
180
'a6xx/fd6_blitter.h',
181
'a6xx/fd6_compute.c',
182
'a6xx/fd6_compute.h',
183
'a6xx/fd6_const.c',
184
'a6xx/fd6_const.h',
185
'a6xx/fd6_context.c',
186
'a6xx/fd6_context.h',
187
'a6xx/fd6_draw.c',
188
'a6xx/fd6_draw.h',
189
'a6xx/fd6_emit.c',
190
'a6xx/fd6_emit.h',
191
'a6xx/fd6_format.c',
192
'a6xx/fd6_format.h',
193
'a6xx/fd6_gmem.c',
194
'a6xx/fd6_gmem.h',
195
'a6xx/fd6_image.c',
196
'a6xx/fd6_image.h',
197
'a6xx/fd6_program.c',
198
'a6xx/fd6_program.h',
199
'a6xx/fd6_query.c',
200
'a6xx/fd6_query.h',
201
'a6xx/fd6_rasterizer.c',
202
'a6xx/fd6_rasterizer.h',
203
'a6xx/fd6_resource.c',
204
'a6xx/fd6_resource.h',
205
'a6xx/fd6_screen.c',
206
'a6xx/fd6_screen.h',
207
'a6xx/fd6_texture.c',
208
'a6xx/fd6_texture.h',
209
'a6xx/fd6_vsc.c',
210
'a6xx/fd6_vsc.h',
211
'a6xx/fd6_zsa.c',
212
'a6xx/fd6_zsa.h',
213
'ir3/ir3_cache.c',
214
'ir3/ir3_cache.h',
215
'ir3/ir3_const.h',
216
'ir3/ir3_gallium.c',
217
'ir3/ir3_gallium.h',
218
)
219
220
freedreno_tracepoints = custom_target(
221
'freedreno_tracepoints.[ch]',
222
input: 'freedreno_tracepoints.py',
223
output: ['freedreno_tracepoints.c', 'freedreno_tracepoints.h'],
224
command: [
225
prog_python, '@INPUT@',
226
'-p', join_paths(meson.source_root(), 'src/gallium/auxiliary/util/'),
227
'-C', '@OUTPUT0@',
228
'-H', '@OUTPUT1@',
229
],
230
depend_files: u_trace_py,
231
)
232
233
files_libfreedreno += freedreno_tracepoints
234
235
freedreno_includes = [
236
inc_mesa, inc_mapi,
237
inc_src, inc_include, inc_gallium, inc_gallium_aux,
238
inc_freedreno, include_directories('ir3'),
239
]
240
241
freedreno_c_args = [no_override_init_args]
242
if cc.has_argument('-Wpacked-bitfield-compat')
243
freedreno_c_args += '-Wno-packed-bitfield-compat'
244
endif
245
246
freedreno_cpp_args = []
247
if cpp.has_argument('-Wpacked-bitfield-compat')
248
freedreno_cpp_args += '-Wno-packed-bitfield-compat'
249
endif
250
251
libfreedreno_dependencies = [
252
dep_libdrm,
253
idep_mesautil,
254
idep_nir_headers,
255
idep_libfreedreno_common,
256
idep_u_tracepoints,
257
]
258
259
if with_perfetto
260
libfreedreno_dependencies += dep_perfetto
261
files_libfreedreno += 'freedreno_perfetto.cc'
262
endif
263
264
# The header file ends up part of the build (but just a stub)
265
# in either case:
266
files_libfreedreno += 'freedreno_perfetto.h'
267
268
libfreedreno = static_library(
269
'freedreno',
270
[files_libfreedreno, freedreno_xml_header_files],
271
include_directories : freedreno_includes,
272
c_args : [freedreno_c_args],
273
cpp_args : [freedreno_cpp_args],
274
gnu_symbol_visibility : 'hidden',
275
dependencies : libfreedreno_dependencies,
276
)
277
278
driver_freedreno = declare_dependency(
279
compile_args : '-DGALLIUM_FREEDRENO',
280
link_with : [
281
libfreedrenowinsys,
282
libfreedreno,
283
libfreedreno_drm,
284
libfreedreno_ir2,
285
libfreedreno_ir3,
286
libfreedreno_layout,
287
libfreedreno_perfcntrs
288
],
289
dependencies : idep_nir,
290
)
291
292
ir3_compiler = executable(
293
'ir3_compiler',
294
'ir3/ir3_cmdline.c',
295
include_directories : freedreno_includes,
296
dependencies : [
297
idep_nir,
298
idep_mesautil,
299
],
300
link_with : [
301
libfreedreno,
302
libfreedreno_drm,
303
libfreedreno_ir3,
304
libfreedreno_layout,
305
libgallium,
306
libglsl_standalone,
307
],
308
build_by_default : with_tools.contains('freedreno'),
309
install : false,
310
)
311
312
gmemtool = executable(
313
'gmemtool',
314
[
315
'gmemtool.c',
316
freedreno_tracepoints[1]
317
],
318
include_directories : freedreno_includes,
319
dependencies : [
320
idep_nir,
321
idep_mesautil,
322
idep_u_tracepoints,
323
],
324
link_with : [
325
libfreedreno,
326
libfreedreno_drm,
327
libfreedreno_ir2,
328
libfreedreno_ir3,
329
libfreedreno_layout,
330
libgallium,
331
libglsl_standalone,
332
libfreedreno_perfcntrs,
333
],
334
build_by_default : with_tools.contains('freedreno'),
335
install : false,
336
)
337
338