cell: move debug-related declarations
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 26 Sep 2008 16:10:08 +0000 (10:10 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 26 Sep 2008 16:15:36 +0000 (10:15 -0600)
src/gallium/drivers/cell/spu/spu_debug.h
src/gallium/drivers/cell/spu/spu_main.c

index bbe5889c4b3cabbc9992c7b7ff545155ba734743..eeec05265582344c2609e518f2198f4a7e5c79a9 100644 (file)
@@ -34,8 +34,8 @@
 #define DEBUG 1
 
 #if DEBUG
-boolean Debug = FALSE;
-boolean force_fragment_ops_fallback = TRUE;
+extern boolean Debug;
+extern boolean force_fragment_ops_fallback;
 
 /* These debug macros use the unusual construction ", ##__VA_ARGS__"
  * which expands to the expected comma + args if variadic arguments
index ea01728824f9c953d5066dc238c3c11f62e0366b..bc94674fe8254548e9a11e67bb0b4b34a131798b 100644 (file)
@@ -58,6 +58,12 @@ struct spu_global spu;
 struct spu_vs_context draw;
 
 
+#if DEBUG
+boolean Debug = FALSE;
+boolean force_fragment_ops_fallback = TRUE;
+#endif
+
+
 /**
  * Buffers containing dynamically generated SPU code:
  */