Skip to content

Commit

Permalink
Update mesa to 22.0.0-1
Browse files Browse the repository at this point in the history
  • Loading branch information
0cc4m committed Mar 30, 2022
1 parent d0970fb commit f276d3b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 206 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*\~
*.zst
*.xz
*.sig
mesa-archlinux-arm/mesa/pkg/
mesa-archlinux-arm/mesa/src/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ This contains a PKGBUILD and prebuilt versions of mesa for Arch Linux ARM on the

The origin of the PKGBUILD is the [Arch Linux for ARM PKGBUILD Repository](https://github.com/archlinuxarm/PKGBUILDs/tree/master/extra/mesa)

You need to enable the GPU in the kernel device tree driver first. [Here](https://github.com/DorianRudolph/pinenotes#gpu) is information on how to do that. No u-boot modifications were necessary in my case.
You need to enable the GPU in the kernel device tree first. [Here](https://github.com/DorianRudolph/pinenotes#gpu) is information on how to do that. No u-boot modifications were necessary in my case.
190 changes: 0 additions & 190 deletions mesa-archlinux-arm/mesa/15120.patch

This file was deleted.

22 changes: 7 additions & 15 deletions mesa-archlinux-arm/mesa/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,28 @@
# Contributor: Dan Johansen <[email protected]>

# ALARM: Kevin Mihelich <[email protected]>
# - Removed DRI and Gallium3D drivers/packages for chipsets that don't exist in our ARM devices (intel, VMware svga).
# - Removed Gallium3D drivers/packages for chipsets that don't exist in our ARM devices (intel, VMware svga).
# - added broadcom and panfrost vulkan packages
# - enable lto for aarch64
# - add patch to fix xwayland on panfrost

# pinenote: added patch to enable rockchip_ebc eink display driver support

highmem=1

pkgbase=mesa
pkgname=('vulkan-mesa-layers' 'opencl-mesa' 'vulkan-radeon' 'vulkan-swrast' 'vulkan-broadcom' 'vulkan-panfrost' 'libva-mesa-driver' 'mesa-vdpau' 'mesa')
pkgdesc="An open-source implementation of the OpenGL specification"
pkgver=21.3.7
pkgrel=2
arch=('aarch64')
pkgver=22.0.0
pkgrel=1
arch=('x86_64')
makedepends=('python-mako' 'libxml2' 'libx11' 'xorgproto' 'libdrm' 'libxshmfence' 'libxxf86vm'
'libxdamage' 'libvdpau' 'libva' 'wayland' 'wayland-protocols' 'zstd' 'elfutils' 'llvm'
'libomxil-bellagio' 'libclc' 'clang' 'libglvnd' 'libunwind' 'lm_sensors' 'libxrandr'
'valgrind' 'glslang' 'vulkan-icd-loader' 'directx-headers' 'cmake' 'meson')
url="https://www.mesa3d.org/"
license=('custom')
source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15120.patch
rockchip_ebc.patch
LICENSE)
sha512sums=('0991543e9435457fa4d077517408b3f197be32ed61a6c7ca34ddb3906eed208791f1a57227f74115f99df18e612efab1d2c6809b7cf426d273633b53d4aefc88'
sha512sums=('9faef66adbacba24d11dfe8e2d1a753295798883a10a7cc91e6df9d678c64a8286a12e60c0d8576d944a8cc76f00c30d27c3a71d3458bbe3dbcd66c88a454c3b'
'SKIP'
'591e63fee09467d5de3e5c882d0ce49785eda7975833f9bd81486b232cd1dc79ad6492f3dac813f509d47cd74eaaf4e8024041840e344a08923128023add6d08'
'5ab31c0fafee04b493835fc2908d50d3911d842b5f0156f7559ae04592ca87a7fe95f91ba9fb06881671818e118abed834fc68e2c472cff664f866ec014ebde7'
'f9f0d0ccf166fe6cb684478b6f1e1ab1f2850431c06aa041738563eb1808a004e52cdec823c103c9e180f03ffc083e95974d291353f0220fe52ae6d4897fecc7')
validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D' # Emil Velikov <[email protected]>
'946D09B5E4C9845E63075FF1D961C596A7203456' # Andres Gomez <[email protected]>
Expand All @@ -44,8 +37,8 @@ validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D' # Emil Velikov <emil.l

prepare() {
cd mesa-$pkgver
# Fix XWayland issues on Panfrost devices
patch -Np1 -i "${srcdir}/15120.patch"

# Add rockchip_ebc support
patch -Np1 -i "${srcdir}/rockchip_ebc.patch"
}

Expand All @@ -59,7 +52,6 @@ build() {
-D b_lto=$([[ $CARCH == aarch64 ]] && echo true || echo false) \
-D b_ndebug=true \
-D platforms=x11,wayland \
-D dri-drivers=r100,r200,nouveau \
-D gallium-drivers=r300,r600,radeonsi,freedreno,nouveau,swrast,virgl,zink,d3d12${GALLIUM} \
-D vulkan-drivers=amd,swrast,broadcom,panfrost \
-D vulkan-layers=device-select,overlay \
Expand Down

0 comments on commit f276d3b

Please sign in to comment.