mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
llvmpipe: fix texture image size calculation
We were allocating too much memory for linear layouts. The block_size factor is already included in the row_stride and should not be used in the img_stride calculation. This is typically a 4x savings!
This commit is contained in:
parent
fea189d6e4
commit
08e443a1c8
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ llvmpipe_texture_layout(struct llvmpipe_screen *screen,
|
|||
|
||||
lpr->row_stride[level] = align(nblocksx * block_size, 16);
|
||||
|
||||
lpr->img_stride[level] = lpr->row_stride[level] * nblocksy * block_size;
|
||||
lpr->img_stride[level] = lpr->row_stride[level] * nblocksy;
|
||||
}
|
||||
|
||||
/* Size of the image in tiles (for tiled layout) */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue