continuance of moving core video game libs to glibc default dir
[nyanlinux.git] / builders / mesa-gl-amd-sh-023e78b4d7e9f8666cf09dbd218bd71266853da3 / contrib / generators_amd.sh
blobb6e7e22165faefdfd1d5b4ea89c3dab65e6b50a8
1 echo "Running AMD GPU code generators-->"
2 #===============================================================================
3 # common
4 mkdir -p $build_dir/src/amd/common
6 $python3 \
7 $src_dir/src/amd/common/sid_tables.py \
8 $src_dir/src/amd/common/sid.h \
9 $src_dir/src/amd/registers/gfx6.json \
10 $src_dir/src/amd/registers/gfx7.json \
11 $src_dir/src/amd/registers/gfx8.json \
12 $src_dir/src/amd/registers/gfx81.json \
13 $src_dir/src/amd/registers/gfx9.json \
14 $src_dir/src/amd/registers/gfx940.json \
15 $src_dir/src/amd/registers/gfx10.json \
16 $src_dir/src/amd/registers/gfx10-rsrc.json \
17 $src_dir/src/amd/registers/gfx11.json \
18 $src_dir/src/amd/registers/gfx115.json \
19 $src_dir/src/amd/registers/gfx11-rsrc.json \
20 $src_dir/src/amd/registers/gfx103.json \
21 $src_dir/src/amd/registers/pkt3.json \
22 $src_dir/src/amd/registers/registers-manually-defined.json \
23 >$build_dir/src/amd/common/sid_tables.h &
25 $python3 \
26 $src_dir/src/amd/registers/makeregheader.py \
27 $src_dir/src/amd/registers/gfx6.json \
28 $src_dir/src/amd/registers/gfx7.json \
29 $src_dir/src/amd/registers/gfx8.json \
30 $src_dir/src/amd/registers/gfx81.json \
31 $src_dir/src/amd/registers/gfx9.json \
32 $src_dir/src/amd/registers/gfx940.json \
33 $src_dir/src/amd/registers/gfx10.json \
34 $src_dir/src/amd/registers/gfx10-rsrc.json \
35 $src_dir/src/amd/registers/gfx103.json \
36 $src_dir/src/amd/registers/gfx11.json \
37 $src_dir/src/amd/registers/gfx115.json \
38 $src_dir/src/amd/registers/gfx11-rsrc.json \
39 $src_dir/src/amd/registers/pkt3.json \
40 $src_dir/src/amd/registers/registers-manually-defined.json \
41 --sort address \
42 --guard AMDGFXREGS_H \
43 >$build_dir/src/amd/common/amdgfxregs.h &
44 #===============================================================================
45 # aco
46 mkdir -p $build_dir/src/amd/compiler
48 export PYTHONPATH=$mako
49 $python3 $src_dir/src/amd/compiler/aco_opcodes_h.py \
50 >$build_dir/src/amd/compiler/aco_opcodes.h &
51 $python3 $src_dir/src/amd/compiler/aco_opcodes_cpp.py \
52 >$build_dir/src/amd/compiler/aco_opcodes.cpp &
53 $python3 $src_dir/src/amd/compiler/aco_builder_h.py \
54 >$build_dir/src/amd/compiler/aco_builder.h &
55 unset PYTHONPATH
56 #===============================================================================
57 # gallium driver
58 mkdir -p $build_dir/src/gallium/drivers/radeonsi
60 export PYTHONPATH=$mako
61 $python3 $src_dir/src/amd/common/gfx10_format_table.py \
62 $src_dir/src/util/format/u_format.csv \
63 $src_dir/src/amd/registers/gfx10-rsrc.json \
64 $src_dir/src/amd/registers/gfx11-rsrc.json \
65 >$build_dir/src/gallium/drivers/radeonsi/gfx10_format_table.c &
66 unset PYTHONPATH
67 #-------------------------------------------------------------------------------
68 # do remove the radeonsi pipe loader fallback from (amdgpu/drm winsys) to
69 # (radeon/drm winsys)
70 mkdir -p $build_dir/src/gallium/drivers/radeonsi
71 cp -f $src_dir/src/gallium/drivers/radeonsi/si_pipe.c $build_dir/src/gallium/drivers/radeonsi/
72 patch -i $script_dir/si_pipe.c.patch $build_dir/src/gallium/drivers/radeonsi/si_pipe.c
74 # uvd block is crap, avoid any non-critical code related to it
75 cp -f $script_dir/si_uvd.c $build_dir/src/gallium/drivers/radeonsi/si_uvd.c
77 # not [generation&compile]-able out, trash work, again
78 cp -f $script_dir/si_tracepoints.h $build_dir/src/gallium/drivers/radeonsi
79 cp -f $script_dir/si_utrace.h $build_dir/src/gallium/drivers/radeonsi
80 #===============================================================================
81 echo "<--AMD GPU code generation done"