st/mesa: fix compressed mipmap generation.
authorDave Airlie <airlied@redhat.com>
Tue, 15 Feb 2011 02:50:37 +0000 (12:50 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 15 Feb 2011 04:44:08 +0000 (14:44 +1000)
commitfdb4373a2083ccd0363737fade295b0bedaf9f50
treeeab2b2d69b776e9eb1dc756746cdc8efb7f25e69
parentdc578188fae099a78a806c7f2cf147d151a014ae
st/mesa: fix compressed mipmap generation.

If the underlying transfer had a stride wider for hw alignment reasons,
the mipmap generation would generate badly strided images.

this fixes a few problems I found while testing r600g with s3tc

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_gen_mipmap.c