summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-06 13:29:59 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-06 14:49:44 +0900
commitf27c7729a98937a761eacceabdfd03f9d694d257 (patch)
tree1297bd432f5aa9fb0cb25130f032f670a4b2de94 /src
parenteb189c856d5fa4e4b083a2b265e30aa7548d0613 (diff)
draw: Compile draw_vs_aos only on x86.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/draw/draw_vs_aos.h4
-rw-r--r--src/gallium/auxiliary/draw/draw_vs_aos_machine.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs_aos.h b/src/gallium/auxiliary/draw/draw_vs_aos.h
index fb6d43d32e..f6f6af2dd9 100644
--- a/src/gallium/auxiliary/draw/draw_vs_aos.h
+++ b/src/gallium/auxiliary/draw/draw_vs_aos.h
@@ -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
diff --git a/src/gallium/auxiliary/draw/draw_vs_aos_machine.c b/src/gallium/auxiliary/draw/draw_vs_aos_machine.c
index b7864e9f2f..dcb6c2c8d4 100644
--- a/src/gallium/auxiliary/draw/draw_vs_aos_machine.c
+++ b/src/gallium/auxiliary/draw/draw_vs_aos_machine.c
@@ -26,6 +26,10 @@
**************************************************************************/
+#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
+