r600: only decompress depth when its tile type is wrong.
authorDave Airlie <airlied@redhat.com>
Tue, 1 Feb 2011 03:00:56 +0000 (13:00 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 1 Feb 2011 03:02:56 +0000 (13:02 +1000)
commitaee5f1e40ca27149a6226187e855125821d96971
treeb0f06e6da06aa628ae28da63a3739780fbafeeee
parent3ef397dafc80278d48d1385e14d4e500a86e94ac
r600: only decompress depth when its tile type is wrong.

If the tile type for the buffer is 1 then its been bound to the
DB at some point, we need to decompress it, otherwise its only
been bound as texture/cb so don't do anything.

This fixes 5 piglit tests here on r600g.
src/gallium/drivers/r600/r600_blit.c
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_texture.c