rtasm: quieten sse_enabled debug
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 21 Apr 2008 18:48:08 +0000 (19:48 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 21 Apr 2008 18:48:08 +0000 (19:48 +0100)
src/gallium/auxiliary/rtasm/rtasm_cpu.c

index 175245a9f6b053740bb1dd97a2d618c95d1d1188..f01e12faa07e4ab6ead3e554d5d0af41df921505 100644 (file)
 
 static boolean rtasm_sse_enabled(void)
 {
-   return !debug_get_bool_option("GALLIUM_NOSSE", FALSE);
+   static boolean firsttime = 1;
+   static boolean enabled;
+   
+   /* This gets called quite often at the moment:
+    */
+   if (firsttime) {
+      enabled =  !debug_get_bool_option("GALLIUM_NOSSE", FALSE);
+      firsttime = FALSE;
+   }
+   return enabled;
 }
 
 int rtasm_cpu_has_sse(void)