diff options
| author | Jakob Bornecrantz <wallbraker@gmail.com> | 2010-07-22 20:00:28 -0700 | 
|---|---|---|
| committer | Jakob Bornecrantz <wallbraker@gmail.com> | 2010-07-22 20:26:35 -0700 | 
| commit | 4eaa6710526469b56875ff9c1ec07e673169386e (patch) | |
| tree | 76eb97d142fa78055a06b68d59267dbebb8aea15 /src | |
| parent | e36a08221400af025f1585f4e1ddbd3715810368 (diff) | |
i915g: Ifdef out debug code on non-debug builds
Diffstat (limited to 'src')
| -rw-r--r-- | src/gallium/drivers/i915/i915_debug.h | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/src/gallium/drivers/i915/i915_debug.h b/src/gallium/drivers/i915/i915_debug.h index 8aa09f9c1f..fa60799d0c 100644 --- a/src/gallium/drivers/i915/i915_debug.h +++ b/src/gallium/drivers/i915/i915_debug.h @@ -47,6 +47,7 @@ struct i915_winsys_batchbuffer;  extern unsigned i915_debug; +#ifdef DEBUG  static INLINE boolean  I915_DBG_ON(unsigned flags)  { @@ -64,6 +65,10 @@ I915_DBG(unsigned flags, const char *fmt, ...)        va_end(args);     }  } +#else +#define I915_DBG_ON(flags) (0) +static INLINE void I915_DBG(unsigned flags, const char *fmt, ...) {} +#endif  void i915_debug_init(struct i915_screen *i915); | 
