radeonsi: improve flushed depth texture handling
authorVadim Girlin <vadimgirlin@gmail.com>
Tue, 15 Jan 2013 18:36:32 +0000 (19:36 +0100)
committerMichel Dänzer <michel@daenzer.net>
Mon, 21 Jan 2013 14:42:28 +0000 (15:42 +0100)
commitbc398f908f8765edee48150dc7e3f24874bb03d9
tree9b46d1fee323fd68fe3d2e3ea4d22999f1470acc
parentbfb405ceee3843ab7fa9ec03919939ff69e2a373
radeonsi: improve flushed depth texture handling

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

[ Ported from r600g commit 37708479608af877986b76302a9c92611d1e23d0 ]

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/r600_blit.c
src/gallium/drivers/radeonsi/r600_resource.h
src/gallium/drivers/radeonsi/r600_texture.c
src/gallium/drivers/radeonsi/radeonsi_pipe.h
src/gallium/drivers/radeonsi/si_state.c