mesa: build panfrost compiler as required by 25.1.0

This commit is contained in:
Rudi Heitbaum 2025-05-08 16:41:18 +00:00
parent ea513618ba
commit a29dfdf64e

View File

@ -61,11 +61,17 @@ if listcontains "${GRAPHIC_DRIVERS}" "etnaviv"; then
PKG_DEPENDS_TARGET+=" pycparser:host"
fi
if listcontains "${GRAPHIC_DRIVERS}" "(iris|panfrost)"; then
if listcontains "${GRAPHIC_DRIVERS}" "iris"; then
PKG_DEPENDS_TARGET+=" mesa:host"
PKG_MESON_OPTS_TARGET+=" -Dmesa-clc=system"
fi
if listcontains "${GRAPHIC_DRIVERS}" "panfrost"; then
PKG_DEPENDS_TARGET+=" mesa:host"
PKG_MESON_OPTS_HOST+=" -Dtools=panfrost"
PKG_MESON_OPTS_TARGET+=" -Dprecomp-compiler=system -Dmesa-clc=system"
fi
if listcontains "${GRAPHIC_DRIVERS}" "(nvidia|nvidia-ng)" ||
[ "${OPENGL_SUPPORT}" = "yes" ] &&
[ "${DISPLAYSERVER}" != "x11" ]; then
@ -120,4 +126,8 @@ makeinstall_host() {
mkdir -p "${TOOLCHAIN}/bin"
cp -a src/compiler/clc/mesa_clc "${TOOLCHAIN}/bin"
cp -a src/compiler/spirv/vtn_bindgen2 "${TOOLCHAIN}/bin"
if listcontains "${GRAPHIC_DRIVERS}" "panfrost"; then
cp -a src/panfrost/clc/panfrost_compile "${TOOLCHAIN}/bin"
fi
}