Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/src/gallium/drivers/radeonsi/meson.build
4570 views
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
'driinfo_radeonsi.h',
23
'gfx10_query.c',
24
'gfx10_shader_ngg.c',
25
'si_blit.c',
26
'si_buffer.c',
27
'si_build_pm4.h',
28
'si_clear.c',
29
'si_compute.c',
30
'si_compute_prim_discard.c',
31
'si_compute.h',
32
'si_compute_blit.c',
33
'si_cp_dma.c',
34
'si_cp_reg_shadowing.c',
35
'si_debug.c',
36
'si_descriptors.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_nir_optim.c',
50
'si_shader.c',
51
'si_shader.h',
52
'si_shader_internal.h',
53
'si_shader_llvm.c',
54
'si_shader_llvm_gs.c',
55
'si_shader_llvm_ps.c',
56
'si_shader_llvm_resources.c',
57
'si_shader_llvm_tess.c',
58
'si_shader_llvm_vs.c',
59
'si_shader_nir.c',
60
'si_shaderlib_nir.c',
61
'si_shaderlib_tgsi.c',
62
'si_sqtt.c',
63
'si_state.c',
64
'si_state.h',
65
'si_state_binning.c',
66
'si_state_msaa.c',
67
'si_state_shaders.c',
68
'si_state_streamout.c',
69
'si_state_viewport.c',
70
'si_test_blit.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_vcn_av1_default.h',
85
'../radeon/radeon_uvd_enc_1_1.c',
86
'../radeon/radeon_uvd_enc.c',
87
'../radeon/radeon_uvd_enc.h',
88
'../radeon/radeon_vce_40_2_2.c',
89
'../radeon/radeon_vce_50.c',
90
'../radeon/radeon_vce_52.c',
91
'../radeon/radeon_vce.c',
92
'../radeon/radeon_vce.h',
93
'../radeon/radeon_video.c',
94
'../radeon/radeon_video.h',
95
'../radeon/radeon_winsys.h',
96
)
97
98
radeonsi_include_dirs = [inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_amd_common,
99
inc_amd_common_llvm, inc_gallium_drivers]
100
radeonsi_deps = [dep_llvm, dep_clock, dep_libdrm_radeon, idep_nir_headers, idep_amdgfxregs_h, idep_mesautil]
101
102
radeonsi_gfx_libs = []
103
foreach ver : ['6', '7', '8', '9', '10', '103']
104
radeonsi_gfx_libs += static_library(
105
'radeonsi_gfx@0@'.format(ver),
106
['si_state_draw.cpp'],
107
include_directories : radeonsi_include_dirs,
108
cpp_args : ['-DGFX_VER=@0@'.format(ver)],
109
gnu_symbol_visibility : 'hidden',
110
dependencies : radeonsi_deps,
111
)
112
endforeach
113
114
libradeonsi = static_library(
115
'radeonsi',
116
[files_libradeonsi, sid_tables_h],
117
include_directories : radeonsi_include_dirs,
118
gnu_symbol_visibility : 'hidden',
119
dependencies : radeonsi_deps,
120
)
121
122
driver_radeonsi = declare_dependency(
123
compile_args : '-DGALLIUM_RADEONSI',
124
link_with : radeonsi_gfx_libs + [
125
libradeonsi, libradeonwinsys, libamdgpuwinsys, libamd_common, libamd_common_llvm, libgalliumvl
126
],
127
dependencies : idep_nir,
128
)
129
130