aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2009-03-21 18:07:33 +1000
committerDave Airlie <[email protected]>2009-03-21 18:07:33 +1000
commit8a600836766716df684f2ab1eeafdcbec4b0f019 (patch)
treeecd72004b19335d49839a0945e6d9a5947b060f8 /src/mesa/drivers
parente795bd3c9090443a5e52ff79356c253022de8538 (diff)
radeon: add cpp/pitch to rrb
Diffstat (limited to 'src/mesa/drivers')
-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 0e3ac9c4057..110afb74507 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,