Mesa (master): target-helpers: Enable debug helpers only on debug builds.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Fri Jul 6 16:04:49 UTC 2012
Module: Mesa
Branch: master
Commit: 232073b0d97756ee4b3961c99050f4e20aa29a44
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=232073b0d97756ee4b3961c99050f4e20aa29a44
Author: José Fonseca <jfonseca at vmware.com>
Date: Fri Jul 6 09:50:11 2012 +0100
target-helpers: Enable debug helpers only on debug builds.
Some of these helpers use debug_get_option, which works also on releases.
---
.../auxiliary/target-helpers/inline_debug_helper.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/gallium/auxiliary/target-helpers/inline_debug_helper.h b/src/gallium/auxiliary/target-helpers/inline_debug_helper.h
index c6630c4..43a7249 100644
--- a/src/gallium/auxiliary/target-helpers/inline_debug_helper.h
+++ b/src/gallium/auxiliary/target-helpers/inline_debug_helper.h
@@ -10,6 +10,8 @@
* one or more debug driver: rbug, trace.
*/
+#ifdef DEBUG
+
#ifdef GALLIUM_TRACE
#include "trace/tr_public.h"
#endif
@@ -26,9 +28,12 @@
#include "noop/noop_public.h"
#endif
+#endif /* DEBUG */
+
static INLINE struct pipe_screen *
debug_screen_wrap(struct pipe_screen *screen)
{
+#ifdef DEBUG
#if defined(GALLIUM_RBUG)
screen = rbug_screen_create(screen);
@@ -46,6 +51,8 @@ debug_screen_wrap(struct pipe_screen *screen)
screen = noop_screen_create(screen);
#endif
+#endif /* DEBUG */
+
return screen;
}
More information about the mesa-commit
mailing list