projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c35e5c1
)
radeon: protect fbo allocation message with debug
author
Alex Deucher
<alexdeucher@gmail.com>
Fri, 18 Dec 2009 15:57:37 +0000
(10:57 -0500)
committer
Alex Deucher
<alexdeucher@gmail.com>
Fri, 18 Dec 2009 15:57:37 +0000
(10:57 -0500)
fixes fdo bug 25708
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
src/mesa/drivers/dri/radeon/radeon_fbo.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_fbo.c
b/src/mesa/drivers/dri/radeon/radeon_fbo.c
index fc21069a92c1f7e34d57c57bc3a81d6c728bba08..a536436d55f669a52855739ce35684080ebc92a3 100644
(file)
--- 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;