draw: Compile draw_vs_aos only on x86.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 6 Jun 2008 04:29:59 +0000 (13:29 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 6 Jun 2008 05:49:44 +0000 (14:49 +0900)
src/gallium/auxiliary/draw/draw_vs_aos.h
src/gallium/auxiliary/draw/draw_vs_aos_machine.c

index fb6d43d32e26186d5213ab9cf99fba8f53dda9eb..f6f6af2dd907be914f3406d0d28d0e091f0b0af3 100644 (file)
@@ -31,6 +31,9 @@
 #ifndef DRAW_VS_AOS_H
 #define DRAW_VS_AOS_H
 
+#include "pipe/p_config.h"
+
+#ifdef PIPE_ARCH_X86
 
 struct tgsi_token;
 struct x86_function;
@@ -239,6 +242,7 @@ struct draw_vs_varient_aos_sse {
 };
 
 
+#endif
 
 #endif 
 
index b7864e9f2f0b77025b29ec035a89233f69bfbe41..dcb6c2c8d4c462685756f6d873696ca59a3ac484 100644 (file)
  **************************************************************************/
 
 
+#include "pipe/p_config.h"
+
+#ifdef PIPE_ARCH_X86
+
 #include "pipe/p_util.h"
 #include "pipe/p_shader_tokens.h"
 #include "tgsi/util/tgsi_parse.h"
@@ -295,3 +299,5 @@ struct aos_machine *draw_vs_aos_machine( void )
 }
 
 
+#endif
+