summaryrefslogtreecommitdiff
path: root/extra/mesa/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-06-15 11:57:33 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-06-15 11:57:33 +0200
commitddcaba19633cfa57b4d8bfc193cc4e8d0dc45208 (patch)
treea687d7af0058d427117414e2eeef9429ededf0cc /extra/mesa/PKGBUILD
parent2e969067e6acf7dc53a8b360777a78e9f0a6698d (diff)
downloadpackages-ddcaba19633cfa57b4d8bfc193cc4e8d0dc45208.tar.xz
extra/mesa: trying to fix FS32#39 (AVX in modesetting in openswr)
Diffstat (limited to 'extra/mesa/PKGBUILD')
-rw-r--r--extra/mesa/PKGBUILD17
1 files changed, 15 insertions, 2 deletions
diff --git a/extra/mesa/PKGBUILD b/extra/mesa/PKGBUILD
index 50f4397b..5da3bb35 100644
--- a/extra/mesa/PKGBUILD
+++ b/extra/mesa/PKGBUILD
@@ -1,7 +1,20 @@
-# disable AVX/AVX2 in openswf, makes no sense with old CPUs
+# disable openswf as it requires AVX, makes no sense with old CPUs
+# disable every new software rasterizer and take the old ones
+# see also FS32#39
eval "$(
declare -f build | \
sed '
- s/-D swr-arches=avx,avx2//g
+ /arch-meson/s/\(gallium-drivers=.*\),swr/\1/
+ /arch-meson/s/-D swr-arches=avx,avx2//
+ /arch-meson/s/-D gallium-nine=true/-D gallium-nine=false/
+ /arch-meson/s/-D osmesa=gallium/-D osmesa=classic/
+ /arch-meson/s/dri-drivers=/dri-drivers=swrast,/
+ '
+ declare -f package_mesa | \
+ sed '
+ s@_install fakeinstall/usr/lib/d3d@#\0@g
+ s@_install fakeinstall/usr/lib/libswrAVX.*@#\0@g
'
)"
+
+