Mesa (gallium-0.2): cell: move debug-related declarations

Brian Paul brianp at kemper.freedesktop.org
Fri Sep 26 17:04:31 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: bb01c1a78eefeea6bc756d837fdd063660ac0230
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb01c1a78eefeea6bc756d837fdd063660ac0230

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Fri Sep 26 10:10:08 2008 -0600

cell: move debug-related declarations

---

 src/gallium/drivers/cell/spu/spu_debug.h |    4 ++--
 src/gallium/drivers/cell/spu/spu_main.c  |    6 ++++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/cell/spu/spu_debug.h b/src/gallium/drivers/cell/spu/spu_debug.h
index bbe5889..eeec052 100644
--- a/src/gallium/drivers/cell/spu/spu_debug.h
+++ b/src/gallium/drivers/cell/spu/spu_debug.h
@@ -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
diff --git a/src/gallium/drivers/cell/spu/spu_main.c b/src/gallium/drivers/cell/spu/spu_main.c
index ea01728..bc94674 100644
--- a/src/gallium/drivers/cell/spu/spu_main.c
+++ b/src/gallium/drivers/cell/spu/spu_main.c
@@ -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:
  */




More information about the mesa-commit mailing list