Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions packages/mesa/arch/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ epoch=1
# Mesa's version, the commit's number on the fork's main branch (so that a
# newer commit is a newer package), and the commit.
pkgver=27.0.0.4
pkgrel=1
pkgdesc="Mesa from the OrchardLinux fork: OpenGL through Zink or in software, the Vulkan driver for the Apple PowerVR GPUs, and the desktop's GPU probe"
pkgrel=2
pkgdesc="Mesa from the OrchardLinux fork: OpenGL through Zink or in software, the asahi driver for the Apple A12 GPU, the Vulkan driver for the Apple PowerVR GPUs, and the desktop's GPU probe"
url="https://github.com/OrchardLinux/mesa"
license=('MIT')
arch=('aarch64')
Expand Down Expand Up @@ -64,8 +64,9 @@ build() {
-Dopengl=false -Degl=disabled -Dgbm=disabled -Dglx=disabled -Dgles2=disabled
ninja -C build-vulkan
# OpenGL. X11 and GLX are for applications under Xwayland, as in Arch's mesa.
# asahi: the A12's GPU (G11), which OrchardLinux/mesa builds it for.
meson setup "mesa-${_commit}" build-gl "${common[@]}" --buildtype=release -Db_ndebug=true \
-Dplatforms=x11,wayland -Dvulkan-drivers= -Dgallium-drivers=zink,llvmpipe,softpipe \
-Dplatforms=x11,wayland -Dvulkan-drivers= -Dgallium-drivers=zink,llvmpipe,softpipe,asahi \
-Dopengl=true -Dgles2=enabled -Degl=enabled -Dgbm=enabled -Dglx=dri -Dglvnd=enabled \
-Dshared-llvm=enabled -Dgallium-va=disabled -Dgallium-rusticl=false -Dgallium-extra-hud=false \
-Dlmsensors=disabled -Dvalgrind=disabled -Dlibunwind=disabled -Dteflon=false
Expand All @@ -81,8 +82,9 @@ package() {
# The drivers that make this package what the image needs.
local gallium=("${pkgdir}"/usr/lib/libgallium-*.so)
[[ ${#gallium[@]} == 1 ]]
for driver in zink llvmpipe softpipe; do grep -q "${driver}" "${gallium[0]}"; done
for driver in zink llvmpipe softpipe asahi; do grep -q "${driver}" "${gallium[0]}"; done
for file in lib/libEGL_mesa.so.0 lib/libGLX_mesa.so.0 lib/libgbm.so.1 lib/gbm/dri_gbm.so lib/dri/zink_dri.so \
lib/dri/asahi_dri.so \
lib/dri/swrast_dri.so lib/dri/kms_swrast_dri.so share/glvnd/egl_vendor.d/50_mesa.json; do
[[ -e ${pkgdir}/usr/${file} ]]
done
Expand Down
Loading