radeon: add cpp/pitch to rrb
authorDave Airlie <airlied@linux.ie>
Sat, 21 Mar 2009 08:07:33 +0000 (18:07 +1000)
committerDave Airlie <airlied@linux.ie>
Sat, 21 Mar 2009 08:07:33 +0000 (18:07 +1000)
src/mesa/drivers/dri/radeon/radeon_fbo.c

index 0e3ac9c405721c8dddd7b99917c0cb564f4ca45b..110afb7450767a596ea307ee255caabed9337e03 100644 (file)
@@ -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,