summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/cell/spu/spu_debug.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-10-15 13:55:18 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-10-15 13:55:18 -0600
commitddeec1ed10d6c12403fe8d30c072ea68f044db99 (patch)
treeae7b571024a8417986fcad8ee30c659af1628cee /src/gallium/drivers/cell/spu/spu_debug.h
parent53951531ae7bfd64afae1ae55aac7f6ebd3fe4f5 (diff)
cell: simplify spu debug code
Diffstat (limited to 'src/gallium/drivers/cell/spu/spu_debug.h')
-rw-r--r--src/gallium/drivers/cell/spu/spu_debug.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gallium/drivers/cell/spu/spu_debug.h b/src/gallium/drivers/cell/spu/spu_debug.h
index eeec052655..25653dcdcd 100644
--- a/src/gallium/drivers/cell/spu/spu_debug.h
+++ b/src/gallium/drivers/cell/spu/spu_debug.h
@@ -30,28 +30,19 @@
#define SPU_DEBUG_H
-/* Set to 0 to disable all extraneous debugging code */
-#define DEBUG 1
-
#if DEBUG
-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
* are supplied, but swallows the comma if there are no variadic
* arguments (which avoids syntax errors that would otherwise occur).
*/
-#define DEBUG_PRINTF(format,...) \
- if (Debug) \
- printf("SPU %u: " format, spu.init.id, ##__VA_ARGS__)
#define D_PRINTF(flag, format,...) \
if (spu.init.debug_flags & (flag)) \
printf("SPU %u: " format, spu.init.id, ##__VA_ARGS__)
#else
-#define DEBUG_PRINTF(...)
#define D_PRINTF(...)
#endif