@@ -10,6 +10,8 @@ pacman --noconfirm -S \
1010 libpciaccess lib32-libpciaccess \
1111 glslang \
1212 python-mako \
13+ python-yaml \
14+ python-ply \
1315 libglvnd lib32-libglvnd \
1416 byacc flex bison \
1517 wayland-protocols \
@@ -29,10 +31,10 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
2931cd /root
3032
3133# Clone meson
32- git clone --depth=1 --branch 1.3 .1 https://github.com/mesonbuild/meson.git
34+ git clone --depth=1 --branch 1.5 .1 https://github.com/mesonbuild/meson.git
3335
3436# Build and install DRM
35- git clone --depth=1 --branch libdrm-2.4.119 https://gitlab.freedesktop.org/mesa/drm.git
37+ git clone --depth=1 --branch libdrm-2.4.122 https://gitlab.freedesktop.org/mesa/drm.git
3638cd drm
3739
3840mkdir Build
@@ -69,16 +71,13 @@ ninja install
6971cd /root
7072
7173# Build and install mesa
72- git clone --depth=1 --branch mesa-24.1.0 https://gitlab.freedesktop.org/mesa/mesa.git
74+ git clone --depth=1 --branch mesa-24.3.3 https://gitlab.freedesktop.org/mesa/mesa.git
7375cd mesa
7476mkdir Build
7577mkdir Build_x86
7678
77- # Update asahi
78- sed -i ' s/native : true/native : not meson.can_run_host_binaries()/g' src/asahi/clc/meson.build
79-
80- export GALLIUM_DRIVERS=" r300,r600,radeonsi,nouveau,virgl,svga,swrast,iris,kmsro,v3d,vc4,freedreno,etnaviv,tegra,lima,panfrost,zink,asahi,d3d12"
81- export VULKAN_DRIVERS=" amd,broadcom,freedreno,panfrost,swrast,virtio,nouveau"
79+ export GALLIUM_DRIVERS=" r300,r600,radeonsi,nouveau,virgl,svga,swrast,v3d,vc4,freedreno,etnaviv,tegra,lima,panfrost,zink,d3d12,asahi,iris"
80+ export VULKAN_DRIVERS=" amd,broadcom,freedreno,panfrost,swrast,virtio,nouveau,intel,asahi"
8281
8382# Needed for rusticl
8483rustup target add i686-unknown-linux-gnu
@@ -92,7 +91,7 @@ cd Build
9291 -Dgallium-drivers=$GALLIUM_DRIVERS \
9392 -Dvulkan-drivers=$VULKAN_DRIVERS \
9493 -Dplatforms=x11,wayland \
95- -Dfreedreno-kmds=msm,virtio \
94+ -Dfreedreno-kmds=msm,virtio,kgsl \
9695 -Dglvnd=enabled \
9796 -Dc_args=" -mfpmath=sse -msse -msse2 -mstackrealign" \
9897 -Dcpp_args=" -mfpmath=sse -msse -msse2 -mstackrealign" \
@@ -106,15 +105,16 @@ cd Build_x86
106105
107106# Asahi and Iris disabled because {asahi,intel}_clc fail to link to the correct libclang-cpp
108107# Same issue with rusticl
109- export GALLIUM_DRIVERS=" r300,r600,radeonsi,nouveau,virgl,svga,swrast,kmsro,v3d,vc4,freedreno,etnaviv,tegra,lima,panfrost,zink,d3d12"
108+ export GALLIUM_DRIVERS=" r300,r600,radeonsi,nouveau,virgl,svga,swrast,v3d,vc4,freedreno,etnaviv,tegra,lima,panfrost,zink,d3d12"
109+ export VULKAN_DRIVERS=" amd,broadcom,freedreno,panfrost,swrast,virtio"
110110/root/meson/meson.py setup -Dprefix=/usr -Dlibdir=/usr/lib32 \
111111 -Dbuildtype=release \
112112 -Db_ndebug=true \
113113 -Dgallium-rusticl=false -Dopencl-spirv=false -Dshader-cache=enabled -Dllvm=enabled \
114114 -Dgallium-drivers=$GALLIUM_DRIVERS \
115115 -Dvulkan-drivers=$VULKAN_DRIVERS \
116116 -Dplatforms=x11,wayland \
117- -Dfreedreno-kmds=msm,virtio \
117+ -Dfreedreno-kmds=msm,virtio,kgsl \
118118 -Dglvnd=enabled \
119119 -Dc_args=" -m32 -mfpmath=sse -msse -msse2 -mstackrealign" \
120120 -Dcpp_args=" -m32 -mfpmath=sse -msse -msse2 -mstackrealign" \
0 commit comments