mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
egl: helps if the stride is right
This commit is contained in:
parent
838b0d6e48
commit
a7499b7fc7
1 changed files with 3 additions and 1 deletions
|
|
@ -190,7 +190,9 @@ surface_alloc_storage(struct pipe_winsys *winsys,
|
|||
surf->width = width;
|
||||
surf->height = height;
|
||||
surf->format = format;
|
||||
pf_get_block(format, &surf->block);
|
||||
pf_get_block(surf->format, &surf->block);
|
||||
surf->nblocksx = pf_get_nblocksx(&surf->block, width);
|
||||
surf->nblocksy = pf_get_nblocksy(&surf->block, height);
|
||||
surf->stride = round_up(surf->nblocksx * surf->block.size, alignment);
|
||||
surf->usage = flags;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue