From: Dave Airlie Date: Sat, 21 Mar 2009 08:07:33 +0000 (+1000) Subject: radeon: add cpp/pitch to rrb X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a600836766716df684f2ab1eeafdcbec4b0f019;p=mesa.git radeon: add cpp/pitch to rrb --- 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,