radeon: add cpp/pitch to rrb

This commit is contained in:
Dave Airlie 2009-03-21 18:07:33 +10:00
parent e795bd3c90
commit 8a60083676

View 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,