r600g: fix miptree calculations
authorDave Airlie <airlied@redhat.com>
Tue, 15 Feb 2011 03:21:50 +0000 (13:21 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 15 Feb 2011 04:44:08 +0000 (14:44 +1000)
commita661dacf143d7187abc2360ac945db75296f7e23
tree633a9ed289c30752c4812ea275956589ae0bc3bc
parentea7a548d07ddc69c226a425af0f88f818203d6ee
r600g: fix miptree calculations

the miptree setup and pitch storing didn't work so well for block
based things like compressed textures. The CB takes blocks, where
the texture sampler takes pixels, and transfers need bytes,

So now we store blocks/bytes and translate to pixels in the sampler.

This is necessary for s3tc to work properly.
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_resource.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_texture.c