summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915simple/i915_debug.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2008-11-16 12:33:58 +0100
committerJakob Bornecrantz <[email protected]>2008-11-16 13:15:14 +0100
commit96ad8a36003a21180ad6b61aa0b7d7c9452b3449 (patch)
tree1ae7620c6a2b140529529dd8da3ea9eb95b287a4 /src/gallium/drivers/i915simple/i915_debug.c
parent7468765b18be202a64d58b83f6267b6973ea4897 (diff)
i915: Silence warnings
Diffstat (limited to 'src/gallium/drivers/i915simple/i915_debug.c')
-rw-r--r--src/gallium/drivers/i915simple/i915_debug.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915simple/i915_debug.c b/src/gallium/drivers/i915simple/i915_debug.c
index 5e26d1b9057..7a4e7051d20 100644
--- a/src/gallium/drivers/i915simple/i915_debug.c
+++ b/src/gallium/drivers/i915simple/i915_debug.c
@@ -210,6 +210,7 @@ BITS(
PRINTF(stream, ": 0x%x\n", ((dw) & himask) >> (lo));
}
+#ifdef DEBUG
#define MBZ( dw, hi, lo) do { \
unsigned x = (dw) >> (lo); \
unsigned lomask = (1 << (lo)) - 1; \
@@ -217,6 +218,10 @@ BITS(
himask = (1UL << (hi)) - 1; \
assert ((x & himask & ~lomask) == 0); \
} while (0)
+#else
+#define MBZ( dw, hi, lo) do { \
+} while (0)
+#endif
static void
FLAG(