mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
r300g: print configurable debugging info on non-debug builds
This commit is contained in:
parent
5f1699e9d5
commit
1c2912ee7a
2 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue