r600g: improve flushed depth texture handling v2
authorVadim Girlin <vadimgirlin@gmail.com>
Tue, 10 Jul 2012 22:19:51 +0000 (02:19 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Tue, 10 Jul 2012 22:39:59 +0000 (02:39 +0400)
commit37708479608af877986b76302a9c92611d1e23d0
treef66db9d3760b8402df29044b59e70f7e59c7b451
parent860d5bdf984730f69cd19b4f7145f3c84b57d33d
r600g: improve flushed depth texture handling v2

Use r600_resource_texture::flished_depth_texture for GPU access, and
allocate it in the VRAM. For transfers we'll allocate texture in the GTT
and store it in the r600_transfer::staging.

Improves performance when flushed depth texture is frequently used by the
GPU, e.g. in Lightsmark (~30%)

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_blit.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_resource.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_texture.c