diff --git a/packages/mesa/arch/PKGBUILD b/packages/mesa/arch/PKGBUILD index c06138f..410d25d 100644 --- a/packages/mesa/arch/PKGBUILD +++ b/packages/mesa/arch/PKGBUILD @@ -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') @@ -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 @@ -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