summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2009-03-21 18:07:33 +1000
committerDave Airlie <airlied@linux.ie>2009-03-21 18:07:33 +1000
commit8a600836766716df684f2ab1eeafdcbec4b0f019 (patch)
treeecd72004b19335d49839a0945e6d9a5947b060f8 /src/mesa/drivers/dri
parente795bd3c9090443a5e52ff79356c253022de8538 (diff)
radeon: add cpp/pitch to rrb
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_fbo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_fbo.c b/src/mesa/drivers/dri/radeon/radeon_fbo.c
index 0e3ac9c405..110afb7450 100644
--- a/src/mesa/drivers/dri/radeon/radeon_fbo.c
+++ b/src/mesa/drivers/dri/radeon/radeon_fbo.c
@@ -182,6 +182,8 @@ radeon_alloc_renderbuffer_storage(GLcontext * ctx, struct gl_renderbuffer *rb,
/* TODO Alloc a BO */
uint32_t size = width * height * cpp;
+ rrb->pitch = width * cpp;
+ rrb->cpp = cpp;
rrb->bo = radeon_bo_open(radeon->radeonScreen->bom,
0,
size,