OSDN Git Service

target-helpers: Enable debug helpers only on debug builds.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 6 Jul 2012 08:50:11 +0000 (09:50 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 6 Jul 2012 14:05:16 +0000 (15:05 +0100)
Some of these helpers use debug_get_option, which works also on releases.

src/gallium/auxiliary/target-helpers/inline_debug_helper.h

index c6630c4..43a7249 100644 (file)
@@ -10,6 +10,8 @@
  * one or more debug driver: rbug, trace.
  */
 
+#ifdef DEBUG
+
 #ifdef GALLIUM_TRACE
 #include "trace/tr_public.h"
 #endif
 #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;
 }