diff options
author | Marek Olšák <[email protected]> | 2010-03-28 18:38:30 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-03-29 03:33:28 +0200 |
commit | 1c2912ee7a47170bbaa8a71d4af729d0caf17f04 (patch) | |
tree | 249de606f78865683634b08a4908c87553090881 | |
parent | 5f1699e9d5e8e5e67a560482f73e559304a8ae43 (diff) |
r300g: print configurable debugging info on non-debug builds
-rw-r--r-- | src/gallium/drivers/r300/r300_context.h | 2 | ||||
-rw-r--r-- | src/gallium/drivers/r300/r300_screen.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h index eb9178a2656..0a82484e89d 100644 --- a/src/gallium/drivers/r300/r300_context.h +++ b/src/gallium/drivers/r300/r300_context.h @@ -409,7 +409,7 @@ static INLINE void CTX_DBG(struct r300_context * ctx, unsigned flags, if (CTX_DBG_ON(ctx, flags)) { va_list va; va_start(va, fmt); - debug_vprintf(fmt, va); + vfprintf(stderr, fmt, va); va_end(va); } } diff --git a/src/gallium/drivers/r300/r300_screen.h b/src/gallium/drivers/r300/r300_screen.h index a055159c93b..1cf8b7452d7 100644 --- a/src/gallium/drivers/r300/r300_screen.h +++ b/src/gallium/drivers/r300/r300_screen.h @@ -28,6 +28,8 @@ #include "r300_chipset.h" +#include <stdio.h> + struct r300_screen { /* Parent class */ struct pipe_screen screen; @@ -80,7 +82,7 @@ static INLINE void SCREEN_DBG(struct r300_screen * screen, unsigned flags, if (SCREEN_DBG_ON(screen, flags)) { va_list va; va_start(va, fmt); - debug_vprintf(fmt, va); + vfprintf(stderr, fmt, va); va_end(va); } } |