summaryrefslogtreecommitdiff
path: root/extra/mesa/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-06-16 17:15:26 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-06-16 17:15:26 +0200
commit3ed8c84f17bf04c813ffac42e844096151c96ab8 (patch)
tree8b70c6e05dca513a62abd4fe9fd6bb566cd530c5 /extra/mesa/PKGBUILD
parentd35823d979132853faee689550e3ccec644f5bed (diff)
downloadpackages-3ed8c84f17bf04c813ffac42e844096151c96ab8.tar.xz
extra/mesa: another minimal patch against SWR/AVX, should work now
Diffstat (limited to 'extra/mesa/PKGBUILD')
-rw-r--r--extra/mesa/PKGBUILD14
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/mesa/PKGBUILD b/extra/mesa/PKGBUILD
new file mode 100644
index 00000000..380cad2f
--- /dev/null
+++ b/extra/mesa/PKGBUILD
@@ -0,0 +1,14 @@
+# 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 '
+ /arch-meson/s/\(gallium-drivers=.*\),swrast,swr/\1,swrast/
+ /arch-meson/s/\(-D swr-arches=\)avx,avx2/\1/
+ '
+ declare -f package_mesa | \
+ sed '
+ s@_install fakeinstall/usr/lib/libswrAVX.*@#\0@g
+ '
+)"