aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-12-05 12:55:31 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-12-06 16:01:20 +0100
commitca2fc698a20db922ca0c741ca1cc37ded29ac4b9 (patch)
treebb86a5807d5ab31db840ecd081b2858af794cdf4
parent1fe7e74483c9ae77b13b3d8cca84ebe57d64128b (diff)
downloadaports-ca2fc698a20db922ca0c741ca1cc37ded29ac4b9.tar.gz
aports-ca2fc698a20db922ca0c741ca1cc37ded29ac4b9.tar.bz2
aports-ca2fc698a20db922ca0c741ca1cc37ded29ac4b9.tar.xz
main/mesa: upgrade to 19.2.7
- Disable GLESv1 (everyone uses GLESv2) - Enable vulkan-overlay-layer (Enables to have a HUD for information when running vulkan applications, now in mesa-vulkan-layer subpackage) - Enable Intel Iris driver on x86* - Be more explicit about enabling certain things like opengl
-rw-r--r--main/mesa/APKBUILD27
1 files changed, 21 insertions, 6 deletions
diff --git a/main/mesa/APKBUILD b/main/mesa/APKBUILD
index 8131424e04..ea1ddf729d 100644
--- a/main/mesa/APKBUILD
+++ b/main/mesa/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mesa
-pkgver=19.2.6
+pkgver=19.2.7
pkgrel=0
pkgdesc="Mesa DRI OpenGL library"
url="https://www.mesa3d.org"
@@ -72,15 +72,19 @@ _dri_drivers="r100,r200,nouveau"
_gallium_drivers="r300,r600,radeonsi,nouveau,freedreno,swrast,virgl"
_vulkan_drivers="amd"
_arch_opts=""
+_vulkan_overlay_layer=false
case "$CARCH" in
x86*)
_dri_drivers="${_dri_drivers},i915,i965"
- _gallium_drivers="${_gallium_drivers},svga"
+ _gallium_drivers="${_gallium_drivers},svga,iris"
_vulkan_drivers="${_vulkan_drivers},intel"
+ _vulkan_overlay_layer=true
+ makedepends="$makedepends glslang"
subpackages="$subpackages \
$pkgname-dri-intel:_dri \
$pkgname-dri-vmwgfx:_dri \
- $pkgname-vulkan-intel:_vulkan"
+ $pkgname-vulkan-intel:_vulkan \
+ $pkgname-vulkan-layer:_vulkan_layer"
_arch_opts="-Ddri3=true"
case "$CARCH" in
x86)
@@ -113,14 +117,16 @@ build() {
-Dgallium-drivers=$_gallium_drivers \
-Ddri-drivers=$_dri_drivers \
-Dvulkan-drivers=$_vulkan_drivers \
+ -Dvulkan-overlay-layer=$_vulkan_overlay_layer \
-Dplatforms=x11,drm,wayland \
-Dllvm=true \
-Dshared-llvm=true \
-Dshared-glapi=true \
-Dgbm=true \
-Dglx=dri \
+ -Dopengl=true \
-Dosmesa=gallium \
- -Dgles1=true \
+ -Dgles1=false \
-Dgles2=true \
-Degl=true \
-Dgallium-xa=true \
@@ -261,7 +267,7 @@ _dri() {
&& _mv_va r600 radeonsi
;;
intel)
- _mv_dri i915_dri i965_dri
+ _mv_dri i915_dri i965_dri iris_dri
;;
nouveau)
_mv_dri nouveau_dri nouveau_vieux_dri \
@@ -317,7 +323,16 @@ _vulkan() {
_mv_vulkan intel ;;
esac
}
-sha512sums="2e961631ae8ea1cb64d87bede51432445a17d153244d8c76f5eb70cbdc8c069d3f08cac11928d85ce2730d772aff9b3aff089e5e552eb021fdcb65364bb685b6 mesa-19.2.6.tar.xz
+
+_vulkan_layer() {
+ pkgdesc="Vulkan overlay layer to display information about the application"
+
+ mkdir -p "$subpkgdir"/usr/share/vulkan "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/share/vulkan/explicit_layer.d "$subpkgdir"/usr/share/vulkan
+ mv "$pkgdir"/usr/lib/libVkLayer_MESA_overlay.so "$subpkgdir"/usr/lib
+}
+
+sha512sums="87a82664381432e956ee23dc92bec5accf667606232e38d9458d67132c16fdc44584f65671293b83f00c58ad7742b80e942a5d1bd66d457705be60aaaf35395b mesa-19.2.7.tar.xz
cdf22d2da3328e116c379264886bd01fd3ad5cc45fe03dc6fd97bdc4794502598ee195c0b9d975fa264d6ac31c6fa108c0535c91800ecf4fcabfd308e53074cc adjust-cache-deflate-buffer.patch
cf849044d6cc7d2af4ff015208fb09d70bf9660538699797da21bda2ecb7c1892d312af83d05116afd826708d9caafb1d05a13f09139c558aea6fee931e3eee7 musl-fix-includes.patch
6793388662ed98ae2a6bd964573d9ae380195f078386f0402957a1c9ac61b691b48a82ed41045c7172533f25b44f249af10f17f7ac68c8e03847594962cd4b04 add-use-elf-tls.patch"