OSDN Git Service

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>
Wed, 13 Jul 2011 20:14:09 +0000 (13:14 -0700)
commit9279c1e55679ff404c296b5a6a23c8d002e63ac3
treee34490918ec0ef1f7c04018f964ae87bc6575e1b
parentb8f722a82e6920cb4c83f862c84446c4c5b98712
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>
(cherry picked from commit f2fd0d63046c41559c5dfca9ebdc5d33c0ae4177)
src/mesa/drivers/dri/i915/i915_tex_layout.c