projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79800a9
)
i915g: Allow use of I915_DEBUG= options on non-DEBUG builds.
author
Emma Anholt
<emma@anholt.net>
Sun, 27 Jun 2021 20:46:24 +0000
(13:46 -0700)
committer
Emma Anholt
<emma@anholt.net>
Mon, 28 Jun 2021 21:58:28 +0000
(14:58 -0700)
All the checks should be cheap, no need making things harder to debug.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11617>
src/gallium/drivers/i915/i915_debug.h
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/i915/i915_debug.h
b/src/gallium/drivers/i915/i915_debug.h
index
08f509f
..
30b0f9c
100644
(file)
--- a/
src/gallium/drivers/i915/i915_debug.h
+++ b/
src/gallium/drivers/i915/i915_debug.h
@@
-47,7
+47,6
@@
struct i915_winsys_batchbuffer;
extern unsigned i915_debug;
-#ifdef DEBUG
static inline bool
I915_DBG_ON(unsigned flags)
{
@@
-65,13
+64,6
@@
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);