From: Alex Deucher Date: Fri, 18 Dec 2009 15:57:37 +0000 (-0500) Subject: radeon: protect fbo allocation message with debug X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8de081dc1f077a026a962244117ec69f0ba7055;p=mesa.git radeon: protect fbo allocation message with debug fixes fdo bug 25708 Signed-off-by: Alex Deucher --- diff --git a/src/mesa/drivers/dri/radeon/radeon_fbo.c b/src/mesa/drivers/dri/radeon/radeon_fbo.c index fc21069a92c..a536436d55f 100644 --- a/src/mesa/drivers/dri/radeon/radeon_fbo.c +++ b/src/mesa/drivers/dri/radeon/radeon_fbo.c @@ -166,8 +166,9 @@ radeon_alloc_renderbuffer_storage(GLcontext * ctx, struct gl_renderbuffer *rb, uint32_t size; uint32_t pitch = ((cpp * width + 63) & ~63) / cpp; - fprintf(stderr,"Allocating %d x %d radeon RBO (pitch %d)\n", width, - height, pitch); + if (RADEON_DEBUG & RADEON_MEMORY) + fprintf(stderr,"Allocating %d x %d radeon RBO (pitch %d)\n", width, + height, pitch); size = pitch * height * cpp; rrb->pitch = pitch * cpp;