summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
'
)"
+
+