intel: Fix 2x2 and 1x1 compressed teximages from _mesa_generate_mipmap()
authorEric Anholt <eric@anholt.net>
Wed, 8 Jun 2011 23:38:01 +0000 (16:38 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 14 Jun 2011 18:15:29 +0000 (11:15 -0700)
commit51ce86b7811871896d3b838888ab4adbfb77413d
tree5dacf6d8e5d0df9f574791f46dd4ed01d0f50480
parent13dcf3f20da063c2cf740873d0c596f05073a6bf
intel: Fix 2x2 and 1x1 compressed teximages from _mesa_generate_mipmap()

Generally image uploads to a the region occur at TexImage time, but
that's not the case for fallback _mesa_generate_mipmap(), and in this
path we were forgetting to align the width when dividing height.  We
were just leaving out parts of the compressed block at 2x2 and 1x1
levels.

Fixes gen-compressed-teximage.
src/mesa/drivers/dri/intel/intel_mipmap_tree.c