Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 9488514cad2bc9bfe7e06a895874abb5 > files > 24

Glide_V3-DRI-2002.04.10-2mdv2009.0.src.rpm

Status: not-applied

diff -Naur configure.in configure.in
--- configure.in	2004-06-16 08:22:22.000000000 +0200
+++ configure.in	2004-06-16 08:25:26.000000000 +0200
@@ -146,7 +146,7 @@
               [dnl
   --enable-build-architecture Enable AMD 3DNow instructions [default=current]],
               [case ${enableval} in
-               i[3456]86|alpha)
+               i[3456]86|x86_64|alpha)
                    FX_GLIDE_BUILD_ARCHITECTURE=${enableval}
                    ;;
                *)
@@ -185,6 +185,10 @@
 if test "$FX_GLIDE_BUILD_ARCHITECTURE" = "ia64"; then
 FX_GLIDE_CTRISETUP=true
 fi
+if test "$FX_GLIDE_BUILD_ARCHITECTURE" = "x86_64"; then
+FX_GLIDE_CTRISETUP=true
+FX_GLIDE_C_CPU_DETECT=true
+fi
 # Next, we read some configuration options
 # statically.  This is to avoid creating a bunch of
 # not-terribly-useful --enable options.
diff -Naur cvg/init/sst1init.h cvg/init/sst1init.h
--- cvg/init/sst1init.h	2000-11-16 20:26:02.000000000 +0100
+++ cvg/init/sst1init.h	2004-06-16 08:35:54.000000000 +0200
@@ -146,7 +146,7 @@
 #  define P6FENCE {_asm xchg eax, p6FenceVar}
 #elif defined(macintosh) && __POWERPC__ && defined(__MWERKS__)
 #  define P6FENCE __eieio()
-#elif defined (__GNUC__) && defined(__i386__)
+#elif defined (__GNUC__) && (defined(__i386__) || defined(__x86_64__))
 #  define P6FENCE asm("xchg %%eax,%0" : /*outputs*/ : "m" (p6FenceVar) : \
 					"eax");
 #else
diff -Naur h3/glide3/src/fxglide.h h3/glide3/src/fxglide.h
--- h3/glide3/src/fxglide.h	2004-06-16 08:22:23.000000000 +0200
+++ h3/glide3/src/fxglide.h	2004-06-16 08:33:51.000000000 +0200
@@ -1488,7 +1488,7 @@
 #  pragma warning(default : 4035)
 #elif defined(macintosh) && defined(__POWERPC__) && defined(__MWERKS__)
 #  define P6FENCE __eieio()
-#elif defined(__GNUC__) && defined(__i386__)
+#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
 #define P6FENCE asm("xchg %%eax, %0" : : "m" (_GlideRoot.p6Fencer) : "eax");
 #elif defined(__GNUC__) && defined(__ia64__)
 #define P6FENCE asm volatile("mf.a" ::: "memory")
diff -Naur h3/minihwc/linhwc.c.dri h3/minihwc/linhwc.c.dri
--- h3/minihwc/linhwc.c.dri	2004-06-16 08:22:24.000000000 +0200
+++ h3/minihwc/linhwc.c.dri	2004-06-16 08:33:04.000000000 +0200
@@ -67,11 +67,11 @@
 #include "lindri.h"
 
 static FxU32 fenceVar;
-#ifdef __ia64__
+#if defined(__ia64__)
 #define P6FENCE asm volatile("mf.a" ::: "memory");
-#elif __alpha__
+#elif defined(__alpha__)
 #define P6FENCE asm volatile("mb" ::: "memory");
-#elif __i386__
+#elif defined(__i386__) || defined(__x86_64__)
 #define P6FENCE asm("xchg %%eax, %0" : : "m" (fenceVar) : "eax");
 #elif
 Error Need to Define P6FENCE for this architecture
diff -Naur h5/glide3/src/fxglide.h h5/glide3/src/fxglide.h
--- h5/glide3/src/fxglide.h	2004-06-16 08:22:24.000000000 +0200
+++ h5/glide3/src/fxglide.h	2004-06-16 08:30:46.000000000 +0200
@@ -2093,7 +2093,7 @@
 #  pragma warning(default : 4035)
 #elif defined(macintosh) && defined(__POWERPC__) && defined(__MWERKS__)
 #  define P6FENCE __sync()
-#elif defined(__GNUC__) && defined(__i386__)
+#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
 /*
  * This is the __linux__ code.
  */
diff -Naur h5/minihwc/linhwc.c h5/minihwc/linhwc.c
--- h5/minihwc/linhwc.c	2004-06-16 08:22:24.000000000 +0200
+++ h5/minihwc/linhwc.c	2004-06-16 08:28:20.000000000 +0200
@@ -67,7 +67,7 @@
 #include "lindri.h"
 
 static FxU32 fenceVar;
-#if defined(__i386__)
+#if defined(__i386__) || defined(__x86_64__)
 #define P6FENCE asm("xchg %%eax, %0" : : "m" (fenceVar) : "eax");
 #elif defined(__alpha__)
 #define P6FENCE asm volatile("mb" ::: "memory")