1 printf "\tbuilding drivers sub-components-->\n"
2 #===============================================================================
4 mkdir
$build_dir/src
/gallium
5 mkdir
$build_dir/src
/gallium
/drivers
6 mkdir
$build_dir/src
/gallium
/drivers
/radeonsi
7 #-------------------------------------------------------------------------------
8 libradeonsi_c_pathnames
="\
9 $build_dir/src/gallium/drivers/radeonsi/gfx10_format_table.c \
10 $src_dir/src/gallium/drivers/radeonsi/gfx11_query.c \
11 $src_dir/src/gallium/drivers/radeonsi/gfx10_shader_ngg.c \
13 $src_dir/src/gallium/drivers/radeonsi/si_barrier.c \
14 $src_dir/src/gallium/drivers/radeonsi/si_blit.c \
15 $src_dir/src/gallium/drivers/radeonsi/si_buffer.c \
16 $src_dir/src/gallium/drivers/radeonsi/si_clear.c \
17 $src_dir/src/gallium/drivers/radeonsi/si_compute.c \
18 $src_dir/src/gallium/drivers/radeonsi/si_compute_blit.c \
19 $src_dir/src/gallium/drivers/radeonsi/si_cp_dma.c \
20 $src_dir/src/gallium/drivers/radeonsi/si_cp_reg_shadowing.c \
21 $src_dir/src/gallium/drivers/radeonsi/si_cp_utils.c \
22 $src_dir/src/gallium/drivers/radeonsi/si_debug.c \
23 $src_dir/src/gallium/drivers/radeonsi/si_descriptors.c \
24 $src_dir/src/gallium/drivers/radeonsi/si_sdma_copy_image.c \
25 $src_dir/src/gallium/drivers/radeonsi/si_fence.c \
26 $src_dir/src/gallium/drivers/radeonsi/si_get.c \
27 $src_dir/src/gallium/drivers/radeonsi/si_gfx_cs.c \
28 $src_dir/src/gallium/drivers/radeonsi/si_gpu_load.c \
29 $src_dir/src/gallium/drivers/radeonsi/si_nir_lower_abi.c \
30 $src_dir/src/gallium/drivers/radeonsi/si_nir_lower_resource.c \
31 $src_dir/src/gallium/drivers/radeonsi/si_nir_lower_vs_inputs.c \
32 $src_dir/src/gallium/drivers/radeonsi/si_nir_optim.c \
33 $src_dir/src/gallium/drivers/radeonsi/si_perfcounter.c \
34 $build_dir/src/gallium/drivers/radeonsi/si_pipe.c \
35 $src_dir/src/gallium/drivers/radeonsi/si_pm4.c \
36 $src_dir/src/gallium/drivers/radeonsi/si_query.c \
37 $src_dir/src/gallium/drivers/radeonsi/si_shader.c \
38 $src_dir/src/gallium/drivers/radeonsi/si_shader_aco.c \
39 $src_dir/src/gallium/drivers/radeonsi/si_shader_info.c \
40 $src_dir/src/gallium/drivers/radeonsi/si_shaderlib_nir.c \
41 $src_dir/src/gallium/drivers/radeonsi/si_shader_nir.c \
42 $src_dir/src/gallium/drivers/radeonsi/si_sqtt.c \
43 $src_dir/src/gallium/drivers/radeonsi/si_state.c \
44 $src_dir/src/gallium/drivers/radeonsi/si_state_binning.c \
45 $src_dir/src/gallium/drivers/radeonsi/si_state_msaa.c \
46 $src_dir/src/gallium/drivers/radeonsi/si_state_streamout.c \
47 $src_dir/src/gallium/drivers/radeonsi/si_state_viewport.c \
48 $src_dir/src/gallium/drivers/radeonsi/si_test_blit_perf.c \
49 $src_dir/src/gallium/drivers/radeonsi/si_test_dma_perf.c \
50 $src_dir/src/gallium/drivers/radeonsi/si_test_image_copy_region.c \
51 $src_dir/src/gallium/drivers/radeonsi/si_texture.c \
52 $build_dir/src/gallium/drivers/radeonsi/si_uvd.c \
54 $src_dir/src/gallium/drivers/radeonsi/radeon_uvd.c \
55 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn.c \
56 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_enc_1_2.c \
57 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_enc_2_0.c \
58 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_enc_3_0.c \
59 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_enc_4_0.c \
60 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_enc_5_0.c \
61 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_enc.c \
62 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_dec_jpeg.c \
63 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_dec.c \
64 $src_dir/src/gallium/drivers/radeonsi/radeon_uvd_enc_1_1.c \
65 $src_dir/src/gallium/drivers/radeonsi/radeon_uvd_enc.c \
66 $src_dir/src/gallium/drivers/radeonsi/radeon_vce_40_2_2.c \
67 $src_dir/src/gallium/drivers/radeonsi/radeon_vce_50.c \
68 $src_dir/src/gallium/drivers/radeonsi/radeon_vce_52.c \
69 $src_dir/src/gallium/drivers/radeonsi/radeon_vce.c \
70 $src_dir/src/gallium/drivers/radeonsi/radeon_video.c \
72 # some c++ diarrhea did slip in
73 libradeonsi_cxx_pathnames
="\
74 $src_dir/src/gallium/drivers/radeonsi/si_state_shaders.cpp \
76 #-------------------------------------------------------------------------------
77 for src_pathname
in $libradeonsi_c_pathnames
79 cpp_filename
=$
(basename $src_pathname .c
).cpp.c
80 printf "CPP $src_pathname --> $build_dir/src/gallium/drivers/radeonsi/$cpp_filename\n"
81 $cpp $src_pathname -o $build_dir/src
/gallium
/drivers
/radeonsi
/$cpp_filename \
82 -I$cc_internal_fixed_incdir \
83 -I$cc_internal_incdir \
87 -I$build_dir/src
/util \
89 -I$build_dir/src
/amd
/compiler \
90 -I$src_dir/src
/amd
/compiler \
91 -I$build_dir/src
/amd
/common \
92 -I$src_dir/src
/amd
/common \
93 -I$build_dir/src
/amd \
95 -I$build_dir/src
/gallium
/drivers
/radeonsi \
96 -I$src_dir/src
/gallium
/drivers
/radeonsi \
97 -I$build_dir/src
/gallium
/drivers \
98 -I$src_dir/src
/gallium
/drivers \
99 -I$build_dir/src
/gallium
/auxiliary \
100 -I$src_dir/src
/gallium
/auxiliary \
101 -I$build_dir/src
/gallium
/include \
102 -I$src_dir/src
/gallium
/include \
103 -I$build_dir/src
/compiler
/nir \
104 -I$src_dir/src
/compiler
/nir \
105 -I$build_dir/src
/compiler \
106 -I$src_dir/src
/compiler \
109 -I$build_dir/include \
112 $syslib_cpp_flags_defs \
113 $linux_cpp_flags_defs \
114 $cc_builtins_cpp_flags_defs \
115 $cc_attributes_cpp_flags_defs \
116 $mesa_cpp_flags_defs \
118 $external_deps_cpp_flags &
120 #-------------------------------------------------------------------------------
122 #------------------------------------------------------------------------------
123 for src_pathname
in $libradeonsi_c_pathnames
125 cpp_filename
=$
(basename $src_pathname .c
).cpp.c
126 asm_filename
=$
(basename $src_pathname .c
).cpp.c.s
127 printf "CC_S $build_dir/src/gallium/drivers/radeonsi/$cpp_filename --> $build_dir/src/gallium/drivers/radeonsi/$asm_filename\n"
128 $cc_s $build_dir/src
/gallium
/drivers
/radeonsi
/$cpp_filename -o $build_dir/src
/gallium
/drivers
/radeonsi
/$asm_filename &
130 #------------------------------------------------------------------------------
132 #------------------------------------------------------------------------------
134 for src_pathname
in $libradeonsi_c_pathnames
136 asm_filename
=$
(basename $src_pathname .c
).cpp.c.s
137 o_filename
=$
(basename $src_pathname .c
).cpp.c.s.o
138 os
="$os $build_dir/src/gallium/drivers/radeonsi/$o_filename"
139 printf "AS $build_dir/src/gallium/drivers/radeonsi/$asm_filename --> $build_dir/src/gallium/drivers/radeonsi/$o_filename\n"
140 $as $build_dir/src
/gallium
/drivers
/radeonsi
/$asm_filename -o $build_dir/src
/gallium
/drivers
/radeonsi
/$o_filename &
142 #------------------------------------------------------------------------------
143 for src_pathname
in $libradeonsi_cxx_pathnames
145 cxxpp_filename
=$
(basename $src_pathname .cpp
).cpp.cxx
146 printf "CXXPP $src_pathname --> $build_dir/src/gallium/drivers/radeonsi/$cxxpp_filename\n"
147 $cxxpp $src_pathname -o $build_dir/src
/gallium
/drivers
/radeonsi
/$cxxpp_filename \
148 -I$cc_internal_fixed_incdir \
149 -I$cc_internal_incdir \
150 -I$cxx_internal_incdir \
154 -I$build_dir/src
/util \
155 -I$src_dir/src
/util \
156 -I$build_dir/src
/amd
/compiler \
157 -I$src_dir/src
/amd
/compiler \
158 -I$build_dir/src
/amd
/common \
159 -I$src_dir/src
/amd
/common \
160 -I$build_dir/src
/amd \
162 -I$build_dir/src
/gallium
/drivers
/radeonsi \
163 -I$src_dir/src
/gallium
/drivers
/radeonsi \
164 -I$build_dir/src
/gallium
/drivers \
165 -I$src_dir/src
/gallium
/drivers \
166 -I$build_dir/src
/gallium
/auxiliary \
167 -I$src_dir/src
/gallium
/auxiliary \
168 -I$build_dir/src
/gallium
/include \
169 -I$src_dir/src
/gallium
/include \
170 -I$build_dir/src
/compiler
/nir \
171 -I$src_dir/src
/compiler
/nir \
172 -I$build_dir/src
/compiler \
173 -I$src_dir/src
/compiler \
176 -I$build_dir/include \
179 $syslib_cpp_flags_defs \
180 $linux_cpp_flags_defs \
181 $cc_builtins_cpp_flags_defs \
182 $cc_attributes_cpp_flags_defs \
183 $mesa_cpp_flags_defs \
185 $external_deps_cpp_flags &
187 #------------------------------------------------------------------------------
189 #------------------------------------------------------------------------------
190 for src_pathname
in $libradeonsi_cxx_pathnames
192 cxxpp_filename
=$
(basename $src_pathname .cpp
).cpp.cxx
193 asm_filename
=$
(basename $src_pathname .cpp
).cpp.cxx.s
194 printf "CXX_S $build_dir/src/gallium/drivers/radeonsi/$cxxpp_filename --> $build_dir/src/gallium/drivers/radeonsi/$asm_filename\n"
195 $cxx_s $build_dir/src
/gallium
/drivers
/radeonsi
/$cxxpp_filename -o $build_dir/src
/gallium
/drivers
/radeonsi
/$asm_filename &
197 #------------------------------------------------------------------------------
199 #------------------------------------------------------------------------------
201 for src_pathname
in $libradeonsi_cxx_pathnames
203 asm_filename
=$
(basename $src_pathname .cpp
).cpp.cxx.s
204 o_filename
=$
(basename $src_pathname .cpp
).cpp.cxx.s.o
205 os
="$os $build_dir/src/gallium/drivers/radeonsi/$o_filename"
206 printf "AS $build_dir/src/gallium/drivers/radeonsi/$asm_filename --> $build_dir/src/gallium/drivers/radeonsi/$o_filename\n"
207 $as $build_dir/src
/gallium
/drivers
/radeonsi
/$asm_filename -o $build_dir/src
/gallium
/drivers
/radeonsi
/$o_filename &
209 #------------------------------------------------------------------------------
211 #-------------------------------------------------------------------------------
212 printf "AR RCS $build_dir/libradeonsi.a $os\n"
213 $ar_rcs $build_dir/libradeonsi.a
$os
214 #===============================================================================
215 # this so much filthy, there is no words for it
216 libradeonsi_gfx_cxx_pathnames
="\
217 $src_dir/src/gallium/drivers/radeonsi/si_state_draw.cpp \
219 for g
in 6 7 8 9 10 103 11 115 12
221 for src_pathname
in $libradeonsi_gfx_cxx_pathnames
223 cxxpp_filename
=$
(basename $src_pathname .cpp
).
$g.cpp.cxx
224 printf "CXXPP $src_pathname --> $build_dir/src/gallium/drivers/radeonsi/$cxxpp_filename\n"
225 $cxxpp $src_pathname -o $build_dir/src
/gallium
/drivers
/radeonsi
/$cxxpp_filename \
228 -I$cc_internal_fixed_incdir \
229 -I$cc_internal_incdir \
230 -I$cxx_internal_incdir \
234 -I$build_dir/src
/util \
235 -I$src_dir/src
/util \
236 -I$build_dir/src
/amd
/compiler \
237 -I$src_dir/src
/amd
/compiler \
238 -I$build_dir/src
/amd
/common \
239 -I$src_dir/src
/amd
/common \
240 -I$build_dir/src
/amd \
242 -I$build_dir/src
/gallium
/drivers
/radeonsi \
243 -I$src_dir/src
/gallium
/drivers
/radeonsi \
244 -I$build_dir/src
/gallium
/drivers \
245 -I$src_dir/src
/gallium
/drivers \
246 -I$build_dir/src
/gallium
/auxiliary \
247 -I$src_dir/src
/gallium
/auxiliary \
248 -I$build_dir/src
/gallium
/include \
249 -I$src_dir/src
/gallium
/include \
250 -I$build_dir/src
/compiler
/nir \
251 -I$src_dir/src
/compiler
/nir \
252 -I$build_dir/src
/compiler \
253 -I$src_dir/src
/compiler \
256 -I$build_dir/include \
259 $syslib_cpp_flags_defs \
260 $linux_cpp_flags_defs \
261 $cc_builtins_cpp_flags_defs \
262 $cc_attributes_cpp_flags_defs \
263 $mesa_cpp_flags_defs \
265 $external_deps_cpp_flags &
267 #-----------------------------------------------------------------------
269 #-----------------------------------------------------------------------
270 for src_pathname
in $libradeonsi_gfx_cxx_pathnames
272 cxxpp_filename
=$
(basename $src_pathname .cpp
).
$g.cpp.cxx
273 asm_filename
=$
(basename $src_pathname .cpp
).
$g.cpp.cxx.s
274 printf "CXX_S $build_dir/src/gallium/drivers/radeonsi/$cxxpp_filename --> $build_dir/src/gallium/drivers/radeonsi/$asm_filename\n"
275 $cxx_s $build_dir/src
/gallium
/drivers
/radeonsi
/$cxxpp_filename -o $build_dir/src
/gallium
/drivers
/radeonsi
/$asm_filename &
277 #-----------------------------------------------------------------------
279 #-----------------------------------------------------------------------
281 for src_pathname
in $libradeonsi_gfx_cxx_pathnames
283 asm_filename
=$
(basename $src_pathname .cpp
).
$g.cpp.cxx.s
284 o_filename
=$
(basename $src_pathname .cpp
).
$g.cpp.cxx.s.o
285 libradeonsi_gfx_a
="$libradeonsi_gfx_a $build_dir/src/gallium/drivers/radeonsi/$o_filename"
286 printf "AS $build_dir/src/gallium/drivers/radeonsi/$asm_filename --> $build_dir/src/gallium/drivers/radeonsi/$o_filename\n"
287 $as $build_dir/src
/gallium
/drivers
/radeonsi
/$asm_filename -o $build_dir/src
/gallium
/drivers
/radeonsi
/$o_filename &
289 #------------------------------------------------------------------------------
291 #-------------------------------------------------------------------------------
292 printf "AR RCS $build_dir/libradeonsi_gfx$g.a $libradeonsi_gfx_a\n"
293 $ar_rcs $build_dir/libradeonsi_gfx
$g.a
$libradeonsi_gfx_a
294 # will use this variable in dri driver linking command later on
295 libradeonsi_gfx_libs
="$libradeonsi_gfx_libs $build_dir/libradeonsi_gfx$g.a"
297 #===============================================================================
298 printf "\t<--drivers sub-components built\n"