mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
freedreno: a2xx: fix mipmapping for NPOT textures
Fixes: 3a273a4a
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
This commit is contained in:
parent
4f23767590
commit
6c0fefb448
1 changed files with 6 additions and 0 deletions
|
|
@ -55,6 +55,12 @@ fd2_setup_slices(struct fd_resource *rsc)
|
|||
break;
|
||||
}
|
||||
|
||||
/* mipmaps have power of two sizes in memory */
|
||||
if (level) {
|
||||
width = util_next_power_of_two(width);
|
||||
height = util_next_power_of_two(height);
|
||||
}
|
||||
|
||||
slice->pitch = width;
|
||||
slice->offset = size;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue