summaryrefslogtreecommitdiffstats
path: root/package/mesa3d/0001-Fix-runtime-error-with-uClibc.patch
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2017-07-01 10:09:33 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-01 10:12:27 +0200
commitd561a02dba7a0554a6eedc950b2e7ac4bd804cc7 (patch)
treed4b7a3b853e95316b9520befabb5b3717e89f641 /package/mesa3d/0001-Fix-runtime-error-with-uClibc.patch
parent712378a416d65f12ca7efed9a75c2e58c6e62189 (diff)
downloadbuildroot-d561a02dba7a0554a6eedc950b2e7ac4bd804cc7.tar.gz
buildroot-d561a02dba7a0554a6eedc950b2e7ac4bd804cc7.zip
package/{mesa3d, mesa3d-headers}: bump version to 17.1.4
Removed patch 0001, applied upstream: https://cgit.freedesktop.org/mesa/mesa/commit/?h=17.1&id=0069a613ac3b6ca75315cbb2fd3d86b0f6c9ede4 Renumbered remaining patches. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/mesa3d/0001-Fix-runtime-error-with-uClibc.patch')
-rw-r--r--package/mesa3d/0001-Fix-runtime-error-with-uClibc.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/package/mesa3d/0001-Fix-runtime-error-with-uClibc.patch b/package/mesa3d/0001-Fix-runtime-error-with-uClibc.patch
new file mode 100644
index 0000000000..59627beff6
--- /dev/null
+++ b/package/mesa3d/0001-Fix-runtime-error-with-uClibc.patch
@@ -0,0 +1,48 @@
+Fix runtime error with uClibc
+
+Patch inspired by
+https://www.winehq.org/pipermail/wine-bugs/2011-September/288987.html
+http://git.alpinelinux.org/cgit/aports/tree/main/wine/uclibc-fmaxf-fminf.patch?id=c9b491b6099eec02a835ffd05539b5c783c6c43a
+
+Starting an app using mesa3d 10.5.x, Kodi for example, fails:
+
+/usr/lib/kodi/kodi.bin: symbol 'fminf': can't resolve symbol in lib '/usr/lib/dri/i965_dri.so'.
+libGL error: unable to load driver: i965_dri.so
+libGL error: driver pointer missing
+libGL error: failed to load driver: i965
+libGL error: unable to load driver: swrast_dri.so
+libGL error: failed to load driver: swrast
+
+This patch was rejected by upstream mesa3d:
+http://lists.freedesktop.org/archives/mesa-dev/2015-March/079436.html
+
+The real fix was committed to uClibc:
+http://git.uclibc.org/uClibc/commit/?id=6c4538905e65ceb203f59aaa9a61728e81c6bc0a
+
+Until the external toolchains do not contain this uClibc patch we keep this
+patch: http://lists.busybox.net/pipermail/buildroot/2015-March/123410.html
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+diff -uNr mesa-10.5.3.org/src/glsl/nir/nir_constant_expressions.c mesa-10.5.3/src/glsl/nir/nir_constant_expressions.c
+--- mesa-10.5.3.org/src/compiler/nir/nir_constant_expressions.c 2015-04-12 23:31:29.000000000 +0200
++++ mesa-10.5.3/src/compiler/nir/nir_constant_expressions.c 2015-04-13 19:59:37.819786541 +0200
+@@ -48,6 +48,18 @@
+ }
+ #endif
+
++#ifdef __UCLIBC__
++float fmaxf(float a, float b)
++{
++ return (a > b) ? a : b;
++}
++
++float fminf(float a, float b)
++{
++ return (a < b) ? a : b;
++}
++#endif
++
+ /**
+ * Evaluate one component of packSnorm4x8.
+ */
OpenPOWER on IntegriCloud