mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 21:40:29 +01:00
llvmpipe: keep texture stride 16byte aligned
Fixes crash when resizing gears window.
This commit is contained in:
parent
4d2b0eb19e
commit
04de13b9cd
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ llvmpipe_texture_layout(struct pipe_screen *screen,
|
|||
pt->depth[level] = depth;
|
||||
pt->nblocksx[level] = pf_get_nblocksx(&pt->block, width);
|
||||
pt->nblocksy[level] = pf_get_nblocksy(&pt->block, height);
|
||||
lpt->stride[level] = pt->nblocksx[level]*pt->block.size;
|
||||
lpt->stride[level] = align(pt->nblocksx[level]*pt->block.size, 16);
|
||||
|
||||
lpt->level_offset[level] = buffer_size;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue