mesa: remove bogus compressed texture size checks
authorBrian Paul <brianp@vmware.com>
Tue, 2 Oct 2012 15:52:55 +0000 (09:52 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 2 Oct 2012 21:19:00 +0000 (15:19 -0600)
commitdf4a88ac4398ec4c152eb57a7129c07bb623edd7
tree475b45742b14412321de0646c894333958161966
parent82e38ac91f60e4ca242814ad36a5eecb82156cc6
mesa: remove bogus compressed texture size checks

A compressed texture image size doesn't have to be a multiple of the
compressed block size (only sub-images do).  Fixes issues when building
compressed mipmaps because we often wind up with non-block-size images
for the higher mipmap levels.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=55445

Note: This is a candidate for the stable branches.

Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Sven Arvidsson <sa@whiz.se>
src/mesa/main/teximage.c
src/mesa/main/texstore.c