i915: Fix NPOT compressed textures on 915.
authorEric Anholt <eric@anholt.net>
Mon, 11 Jul 2011 23:50:06 +0000 (16:50 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 12 Jul 2011 21:41:04 +0000 (14:41 -0700)
commitf2fd0d63046c41559c5dfca9ebdc5d33c0ae4177
treec36631ccba1bced5d3a1cd4688eae2ad31c841a4
parent898be7d5acc27e2e0dfa8c2f27dc4fd7085fb476
i915: Fix NPOT compressed textures on 915.

We were failing at rounding, misplacing the non-baselevels.  Fixes:
3DFX_texture_compression_FXT1/fbo-generate-mipmaps
ARB_texture_compression/fbo-generate-mipmaps
EXT_texture_compression_s3tc/fbo-generate-mipmaps

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i915/i915_tex_layout.c