radeon: fix npot mipmap alignment on r600

seems it got lost in commit 0d383547
have no earlier radeons to test, but npot mipmaps were not supported there?
This commit is contained in:
Andre Maasikas 2010-08-09 14:37:01 +03:00
parent 8d0985b9b8
commit 67ee40684d
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ static void compute_tex_image_offset(radeonContextPtr rmesa, radeon_mipmap_tree
height = _mesa_next_pow_two_32(lvl->height);
lvl->rowstride = get_texture_image_row_stride(rmesa, mt->mesaFormat, lvl->width, mt->tilebits);
lvl->size = get_texture_image_size(mt->mesaFormat, lvl->rowstride, lvl->height, lvl->depth, mt->tilebits);
lvl->size = get_texture_image_size(mt->mesaFormat, lvl->rowstride, height, lvl->depth, mt->tilebits);
assert(lvl->size > 0);