Wrap RESTORE_FPU/RND_NEG_FPU declarations with check for USE_SSE_ASM.
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 13 Jul 2005 13:50:31 +0000 (13:50 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 13 Jul 2005 13:50:31 +0000 (13:50 +0000)
src/mesa/tnl/t_vb_arbprogram.h

index 004269d60e9d03ceb4c48e1569c3c7e14b97a19b..5b100a0902536becbced1a9e7512a3ffaa13052b 100644 (file)
@@ -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.