mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 11:20:11 +01:00
r300g: do not align texture height to 2^n for 1D and 2D non-mipmapped textures
I don't remember why the alignment was there, but it seems to be no longer needed. I guess it was a dirty fix for some other bug.
This commit is contained in:
parent
5603d2e4c4
commit
3adb5c7d45
1 changed files with 5 additions and 1 deletions
|
|
@ -774,8 +774,12 @@ static unsigned r300_texture_get_nblocksy(struct r300_texture* tex,
|
||||||
height = align(height, tile_height);
|
height = align(height, tile_height);
|
||||||
|
|
||||||
/* This is needed for the kernel checker, unfortunately. */
|
/* This is needed for the kernel checker, unfortunately. */
|
||||||
|
if ((tex->b.b.target != PIPE_TEXTURE_1D &&
|
||||||
|
tex->b.b.target != PIPE_TEXTURE_2D) ||
|
||||||
|
tex->b.b.last_level != 0) {
|
||||||
height = util_next_power_of_two(height);
|
height = util_next_power_of_two(height);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return util_format_get_nblocksy(tex->b.b.format, height);
|
return util_format_get_nblocksy(tex->b.b.format, height);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue