gallium: allow debug helpers in the release build
authorMarek Olšák <maraeo@gmail.com>
Thu, 4 Oct 2012 20:31:49 +0000 (22:31 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 6 Oct 2012 01:34:40 +0000 (03:34 +0200)
No idea why this is #ifdef'd. Trace and Noop are definitely useful no matter
how Mesa is built.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/target-helpers/inline_debug_helper.h

index 43a724979b034e65114e7b762aff06fd5cbbf8e0..77c7cfd0c2054080af33e2c9b896544b16529070 100644 (file)
@@ -10,8 +10,6 @@
  * 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);
 #endif
@@ -51,8 +45,6 @@ debug_screen_wrap(struct pipe_screen *screen)
    screen = noop_screen_create(screen);
 #endif
 
-#endif /* DEBUG */
-
    return screen;
 }