1 printf "\tbuilding drivers sub-components-->\n"
2 mkdir
-p $build_dir/src
/gallium
/drivers
/radeonsi
5 $build_dir/src/gallium/drivers/radeonsi/gfx10_format_table.c \
6 $src_dir/src/gallium/drivers/radeonsi/gfx11_query.c \
7 $src_dir/src/gallium/drivers/radeonsi/gfx10_shader_ngg.c \
9 $src_dir/src/gallium/drivers/radeonsi/si_blit.c \
10 $src_dir/src/gallium/drivers/radeonsi/si_buffer.c \
11 $src_dir/src/gallium/drivers/radeonsi/si_clear.c \
12 $src_dir/src/gallium/drivers/radeonsi/si_compute.c \
13 $src_dir/src/gallium/drivers/radeonsi/si_compute_blit.c \
14 $src_dir/src/gallium/drivers/radeonsi/si_cp_dma.c \
15 $src_dir/src/gallium/drivers/radeonsi/si_cp_reg_shadowing.c \
16 $src_dir/src/gallium/drivers/radeonsi/si_debug.c \
17 $src_dir/src/gallium/drivers/radeonsi/si_descriptors.c \
18 $src_dir/src/gallium/drivers/radeonsi/si_sdma_copy_image.c \
19 $src_dir/src/gallium/drivers/radeonsi/si_fence.c \
20 $src_dir/src/gallium/drivers/radeonsi/si_get.c \
21 $src_dir/src/gallium/drivers/radeonsi/si_gfx_cs.c \
22 $src_dir/src/gallium/drivers/radeonsi/si_gpu_load.c \
23 $src_dir/src/gallium/drivers/radeonsi/si_nir_lower_abi.c \
24 $src_dir/src/gallium/drivers/radeonsi/si_nir_lower_resource.c \
25 $src_dir/src/gallium/drivers/radeonsi/si_nir_lower_vs_inputs.c \
26 $src_dir/src/gallium/drivers/radeonsi/si_nir_optim.c \
27 $src_dir/src/gallium/drivers/radeonsi/si_perfcounter.c \
28 $build_dir/src/gallium/drivers/radeonsi/si_pipe.c \
29 $src_dir/src/gallium/drivers/radeonsi/si_pm4.c \
30 $src_dir/src/gallium/drivers/radeonsi/si_query.c \
31 $src_dir/src/gallium/drivers/radeonsi/si_shader.c \
32 $src_dir/src/gallium/drivers/radeonsi/si_shader_aco.c \
33 $src_dir/src/gallium/drivers/radeonsi/si_shader_info.c \
34 $src_dir/src/gallium/drivers/radeonsi/si_shaderlib_nir.c \
35 $src_dir/src/gallium/drivers/radeonsi/si_shader_llvm.c \
36 $src_dir/src/gallium/drivers/radeonsi/si_shader_llvm_vs.c \
37 $src_dir/src/gallium/drivers/radeonsi/si_shader_llvm_gs.c \
38 $src_dir/src/gallium/drivers/radeonsi/si_shader_llvm_ps.c \
39 $src_dir/src/gallium/drivers/radeonsi/si_shader_llvm_tess.c \
40 $src_dir/src/gallium/drivers/radeonsi/si_shader_nir.c \
41 $src_dir/src/gallium/drivers/radeonsi/si_shaderlib_tgsi.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_dma_perf.c \
49 $src_dir/src/gallium/drivers/radeonsi/si_test_image_copy_region.c \
50 $src_dir/src/gallium/drivers/radeonsi/si_texture.c \
51 $build_dir/src/gallium/drivers/radeonsi/si_uvd.c \
53 $src_dir/src/gallium/drivers/radeonsi/radeon_uvd.c \
54 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn.c \
55 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_enc_1_2.c \
56 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_enc_2_0.c \
57 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_enc_3_0.c \
58 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_enc_4_0.c \
59 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_enc.c \
60 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_dec_jpeg.c \
61 $src_dir/src/gallium/drivers/radeonsi/radeon_vcn_dec.c \
62 $src_dir/src/gallium/drivers/radeonsi/radeon_uvd_enc_1_1.c \
63 $src_dir/src/gallium/drivers/radeonsi/radeon_uvd_enc.c \
64 $src_dir/src/gallium/drivers/radeonsi/radeon_vce_40_2_2.c \
65 $src_dir/src/gallium/drivers/radeonsi/radeon_vce_50.c \
66 $src_dir/src/gallium/drivers/radeonsi/radeon_vce_52.c \
67 $src_dir/src/gallium/drivers/radeonsi/radeon_vce.c \
68 $src_dir/src/gallium/drivers/radeonsi/radeon_video.c \
70 #-------------------------------------------------------------------------------
72 for f
in $libradeonsi_files_c
74 libradeonsi_obj_dir
=$
(dirname $f)
75 libradeonsi_obj_dir
=$build_dir/${libradeonsi_obj_dir#*/src/}
76 mkdir
-p $libradeonsi_obj_dir
78 libradeonsi_obj
=$libradeonsi_obj_dir/$
(basename $f .c
).o
79 libradeonsi_a
="$libradeonsi_a $libradeonsi_obj"
81 $cco_slib -o $libradeonsi_obj $f \
82 -I$build_dir/src
/gallium
/drivers
/radeonsi \
83 -I$build_dir/src
/amd \
84 -I$build_dir/src
/compiler
/nir \
86 -I$src_dir/src
/amd
/llvm \
87 -I$src_dir/src
/amd
/compiler \
88 -I$build_dir/src
/amd
/common \
89 -I$src_dir/src
/amd
/common \
91 -I$src_dir/src
/gallium
/drivers
/radeonsi \
92 -I$src_dir/src
/gallium
/drivers \
93 -I$src_dir/src
/gallium
/auxiliary \
94 -I$src_dir/src
/gallium
/include \
95 -I$src_dir/src
/compiler
/nir \
96 -I$src_dir/src
/compiler \
99 $cco_slib_common_trailer &
102 # don't mind cpp here, GL is massive cr*p like c++ anyway
103 libradeonsi_files_cpp
="\
104 $src_dir/src/gallium/drivers/radeonsi/si_state_shaders.cpp \
107 for f
in $libradeonsi_files_cpp
109 libradeonsi_obj_dir
=$
(dirname $f)
110 libradeonsi_obj_dir
=$build_dir/${libradeonsi_obj_dir#*/src/}
111 mkdir
-p $libradeonsi_obj_dir
113 libradeonsi_obj
=$libradeonsi_obj_dir/$
(basename $f .cpp
).o
114 libradeonsi_a
="$libradeonsi_a $libradeonsi_obj"
116 $cxxo_slib -o $libradeonsi_obj $f \
117 -I$build_dir/src
/gallium
/drivers
/radeonsi \
118 -I$build_dir/src
/amd \
119 -I$build_dir/src
/compiler
/nir \
120 -I$src_dir/src
/util \
121 -I$src_dir/src
/amd
/llvm \
122 -I$src_dir/src
/amd
/compiler \
123 -I$build_dir/src
/amd
/common \
124 -I$src_dir/src
/amd
/common \
126 -I$src_dir/src
/gallium
/drivers
/radeonsi \
127 -I$src_dir/src
/gallium
/drivers \
128 -I$src_dir/src
/gallium
/auxiliary \
129 -I$src_dir/src
/gallium
/include \
130 -I$src_dir/src
/compiler
/nir \
131 -I$src_dir/src
/compiler \
134 $cco_slib_common_trailer &
138 $ar $build_dir/libradeonsi.a
$libradeonsi_a
140 libradeonsi_gfx_files_cpp
="\
141 $src_dir/src/gallium/drivers/radeonsi/si_state_draw.cpp \
143 for g
in 6 7 8 9 10 103 11
146 for f
in $libradeonsi_gfx_files_cpp
148 libradeonsi_gfx_obj_dir
=$
(dirname $f)
149 libradeonsi_gfx_obj_dir
=$build_dir/${libradeonsi_gfx_obj_dir#*/src/}
150 mkdir
-p $libradeonsi_gfx_obj_dir
152 libradeonsi_gfx_obj
=$libradeonsi_gfx_obj_dir/$
(basename $f .c
).
$g.o
153 libradeonsi_gfx_a
="$libradeonsi_gfx_a $libradeonsi_gfx_obj"
155 $cxxo_slib -o $libradeonsi_gfx_obj $f \
157 -I$build_dir/src
/gallium
/drivers
/radeonsi \
158 -I$build_dir/src
/amd \
159 -I$build_dir/src
/compiler
/nir \
160 -I$src_dir/src
/util \
161 -I$src_dir/src
/amd
/llvm \
162 -I$src_dir/src
/amd
/compiler \
163 -I$build_dir/src
/amd
/common \
164 -I$src_dir/src
/amd
/common \
166 -I$src_dir/src
/gallium
/drivers
/radeonsi \
167 -I$src_dir/src
/gallium
/drivers \
168 -I$src_dir/src
/gallium
/auxiliary \
169 -I$src_dir/src
/gallium
/include \
170 -I$src_dir/src
/compiler
/nir \
171 -I$src_dir/src
/compiler \
174 $cco_slib_common_trailer &
177 $ar $build_dir/libradeonsi_gfx
$g.a
$libradeonsi_gfx_a
178 libradeonsi_gfx_libs
="$libradeonsi_gfx_libs $build_dir/libradeonsi_gfx$g.a"
180 printf "\t<--drivers sub-components built\n"