Mesa (master): r300: Guard debugging output.
Michel Dänzer
daenzer at kemper.freedesktop.org
Fri Jul 3 10:47:00 UTC 2009
Module: Mesa
Branch: master
Commit: 6b2461fec905b7dc25ad051d602b440503f544ea
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b2461fec905b7dc25ad051d602b440503f544ea
Author: Michel Dänzer <daenzer at vmware.com>
Date: Fri Jul 3 12:44:02 2009 +0200
r300: Guard debugging output.
---
src/mesa/drivers/dri/r300/r300_cmdbuf.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/r300/r300_cmdbuf.c b/src/mesa/drivers/dri/r300/r300_cmdbuf.c
index 19d240f..90ca45b 100644
--- a/src/mesa/drivers/dri/r300/r300_cmdbuf.c
+++ b/src/mesa/drivers/dri/r300/r300_cmdbuf.c
@@ -263,8 +263,9 @@ static void emit_cb_offset(GLcontext *ctx, struct radeon_state_atom * atom)
fprintf(stderr, "no rrb\n");
return;
}
-
- fprintf(stderr,"rrb is %p %d %dx%d\n", rrb, offset, rrb->base.Width, rrb->base.Height);
+
+ if (RADEON_DEBUG & DEBUG_STATE)
+ fprintf(stderr,"rrb is %p %d %dx%d\n", rrb, offset, rrb->base.Width, rrb->base.Height);
cbpitch = (rrb->pitch / rrb->cpp);
if (rrb->cpp == 4)
cbpitch |= R300_COLOR_FORMAT_ARGB8888;
More information about the mesa-commit
mailing list