summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2005-07-13 13:50:31 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2005-07-13 13:50:31 +0000
commitc472dcdac0b95cf48a6c8b2f355e14e063f72650 (patch)
treeac0d906562a38f5e85cd3c318d6f9fb858d71505 /src
parentce721143b4d44d239baefe965e499606149b15cb (diff)
Wrap RESTORE_FPU/RND_NEG_FPU declarations with check for USE_SSE_ASM.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/tnl/t_vb_arbprogram.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_vb_arbprogram.h b/src/mesa/tnl/t_vb_arbprogram.h
index 004269d60e..5b100a0902 100644
--- a/src/mesa/tnl/t_vb_arbprogram.h
+++ b/src/mesa/tnl/t_vb_arbprogram.h
@@ -128,6 +128,7 @@ struct output {
/*--------------------------------------------------------------------------- */
+#if defined(USE_SSE_ASM)
#ifdef NO_FAST_MATH
#define RESTORE_FPU (DEFAULT_X86_FPU)
#define RND_NEG_FPU (DEFAULT_X86_FPU | 0x400)
@@ -135,6 +136,11 @@ struct output {
#define RESTORE_FPU (FAST_X86_FPU)
#define RND_NEG_FPU (FAST_X86_FPU | 0x400)
#endif
+#else
+#define RESTORE_FPU 0
+#define RND_NEG_FPU 0
+#endif
+
/*!
* Private storage for the vertex program pipeline stage.