gallium: test for new PIPE_ARCH_X86
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 25 Apr 2008 22:50:56 +0000 (16:50 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 30 Apr 2008 00:35:30 +0000 (18:35 -0600)
src/gallium/drivers/softpipe/sp_context.c
src/gallium/drivers/softpipe/sp_fs_sse.c

index f2ce0fdc6e9d2289f3ad7342ab11f8daecce6a6f..edf91ecafa33601dc5d6e9a4c4c86c70843e07de 100644 (file)
@@ -127,7 +127,7 @@ softpipe_create( struct pipe_screen *screen,
    struct softpipe_context *softpipe = CALLOC_STRUCT(softpipe_context);
    uint i;
 
-#if defined(__i386__) || defined(__386__)
+#ifdef PIPE_ARCH_X86
    softpipe->use_sse = GETENV( "GALLIUM_NOSSE" ) == NULL;
 #else
    softpipe->use_sse = FALSE;
index 4d569e1e22f104dfcdbb64b96743edff56813c55..25fdfea4915e5388c814aef9d0f345e5d6813af6 100644 (file)
@@ -40,7 +40,7 @@
 #include "tgsi/exec/tgsi_sse2.h"
 
 
-#if defined(__i386__) || defined(__386__)
+#ifdef PIPE_ARCH_X86
 
 #include "rtasm/rtasm_x86sse.h"