summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-09-26 10:10:08 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-09-26 10:15:36 -0600
commitbb01c1a78eefeea6bc756d837fdd063660ac0230 (patch)
treedb965b6d5f9102c12db845c410a434f4efca665c /src/gallium/drivers
parentf45d39fa34ca36839c684fdcadd1476360de3a63 (diff)
cell: move debug-related declarations
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/cell/spu/spu_debug.h4
-rw-r--r--src/gallium/drivers/cell/spu/spu_main.c6
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 bbe5889c4b..eeec052655 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 ea01728824..bc94674fe8 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:
*/