mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
radeon: add cpp/pitch to rrb
This commit is contained in:
parent
e795bd3c90
commit
8a60083676
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue