mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
softpipe: fix double-minify in texture layout
This commit is contained in:
parent
9dfbd1be44
commit
a4b3bb12d7
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ softpipe_texture_layout(struct pipe_screen *screen,
|
|||
|
||||
spt->level_offset[level] = buffer_size;
|
||||
|
||||
buffer_size += (pf_get_nblocksy(pt->format, u_minify(height, level)) *
|
||||
buffer_size += (pf_get_nblocksy(pt->format, height) *
|
||||
((pt->target == PIPE_TEXTURE_CUBE) ? 6 : depth) *
|
||||
spt->stride[level]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue