Skip to content
Snippets Groups Projects
Commit 548893d5 authored by Jonathan Marek's avatar Jonathan Marek Committed by Dylan Baker
Browse files

freedreno: a2xx: fix mipmapping for NPOT textures


Fixes: 3a273a4a

Signed-off-by: default avatarJonathan Marek <jonathan@marek.ca>
(cherry picked from commit 6c0fefb4)
parent 84effbe0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment