mesa: use ieee fp on s390 and m68k
authorAndreas Boll <andreas.boll.dev@gmail.com>
Sat, 16 Mar 2013 12:54:09 +0000 (13:54 +0100)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Tue, 19 Mar 2013 17:12:37 +0000 (18:12 +0100)
Taken from downstream:
http://anonscm.debian.org/gitweb/?p=pkg-xorg/lib/mesa.git;a=blob;f=debian/patches/02_use-ieee-fp-on-s390-and-m68k.patch;h=d3d6c1d7fec3c72ecf320706167deb61c52636c3;hb=refs/heads/ubuntu%2B1

Fixes Debian bug #349437.

Patch written by David Nusinow.

NOTE: This is a candidate for stable branches.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/compiler.h

index 48712485a79594d9fade9eaeb72d1be9bb0602f4..8b23665e6891a9761eddc27d828c8d153b7e8fcb 100644 (file)
@@ -307,8 +307,9 @@ static INLINE GLuint CPU_TO_LE32(GLuint x)
  * USE_IEEE: Determine if we're using IEEE floating point
  */
 #if defined(__i386__) || defined(__386__) || defined(__sparc__) || \
-    defined(__s390x__) || defined(__powerpc__) || \
+    defined(__s390__) || defined(__s390x__) || defined(__powerpc__) || \
     defined(__x86_64__) || \
+    defined(__m68k__) || \
     defined(ia64) || defined(__ia64__) || \
     defined(__hppa__) || defined(hpux) || \
     defined(__mips) || defined(_MIPS_ARCH) || \