Gfx stack update
[nyanlinux.git] / builders / mesa-gl-amd-sh-ca92a10800bcb09749758ea1664dc0675955ffa0 / contrib / generators_amd.sh
blob88a85c73741d988848a536f64551901f433f9611
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/gfx11-rsrc.json \
19 $src_dir/src/amd/registers/gfx103.json \
20 $src_dir/src/amd/registers/pkt3.json \
21 $src_dir/src/amd/registers/registers-manually-defined.json \
22 >$build_dir/src/amd/common/sid_tables.h &
24 $python3 \
25 $src_dir/src/amd/registers/makeregheader.py \
26 $src_dir/src/amd/registers/gfx6.json \
27 $src_dir/src/amd/registers/gfx7.json \
28 $src_dir/src/amd/registers/gfx8.json \
29 $src_dir/src/amd/registers/gfx81.json \
30 $src_dir/src/amd/registers/gfx9.json \
31 $src_dir/src/amd/registers/gfx940.json \
32 $src_dir/src/amd/registers/gfx10.json \
33 $src_dir/src/amd/registers/gfx10-rsrc.json \
34 $src_dir/src/amd/registers/gfx103.json \
35 $src_dir/src/amd/registers/gfx11.json \
36 $src_dir/src/amd/registers/gfx11-rsrc.json \
37 $src_dir/src/amd/registers/pkt3.json \
38 $src_dir/src/amd/registers/registers-manually-defined.json \
39 --sort address \
40 --guard AMDGFXREGS_H \
41 >$build_dir/src/amd/common/amdgfxregs.h &
42 #===============================================================================
43 # aco
44 mkdir -p $build_dir/src/amd/compiler
46 export PYTHONPATH=$mako
47 $python3 $src_dir/src/amd/compiler/aco_opcodes_h.py \
48 >$build_dir/src/amd/compiler/aco_opcodes.h &
49 $python3 $src_dir/src/amd/compiler/aco_opcodes_cpp.py \
50 >$build_dir/src/amd/compiler/aco_opcodes.cpp &
51 $python3 $src_dir/src/amd/compiler/aco_builder_h.py \
52 >$build_dir/src/amd/compiler/aco_builder.h &
53 unset PYTHONPATH
54 #===============================================================================
55 # gallium driver
56 mkdir -p $build_dir/src/gallium/drivers/radeonsi
58 export PYTHONPATH=$mako
59 $python3 $src_dir/src/amd/common/gfx10_format_table.py \
60 $src_dir/src/util/format/u_format.csv \
61 $src_dir/src/amd/registers/gfx10-rsrc.json \
62 $src_dir/src/amd/registers/gfx11-rsrc.json \
63 >$build_dir/src/gallium/drivers/radeonsi/gfx10_format_table.c &
64 unset PYTHONPATH
65 #-------------------------------------------------------------------------------
66 # do remove the radeonsi pipe loader fallback from (amdgpu/drm winsys) to
67 # (radeon/drm winsys)
68 mkdir -p $build_dir/src/gallium/drivers/radeonsi
69 cp -f $src_dir/src/gallium/drivers/radeonsi/si_pipe.c $build_dir/src/gallium/drivers/radeonsi/
70 patch -i $script_dir/si_pipe.c.patch $build_dir/src/gallium/drivers/radeonsi/si_pipe.c
72 # uvd block is crap, avoid any non-critical code related to it
73 cp -f $script_dir/si_uvd.c $build_dir/src/gallium/drivers/radeonsi/si_uvd.c
74 #===============================================================================
75 echo "<--AMD GPU code generation done"