diff options
author | Vadim Girlin <[email protected]> | 2013-01-15 19:36:32 +0100 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2013-01-21 15:42:28 +0100 |
commit | bc398f908f8765edee48150dc7e3f24874bb03d9 (patch) | |
tree | 9b46d1fee323fd68fe3d2e3ea4d22999f1470acc /src/gallium/drivers/radeonsi/radeonsi_pipe.h | |
parent | bfb405ceee3843ab7fa9ec03919939ff69e2a373 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_pipe.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_pipe.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.h b/src/gallium/drivers/radeonsi/radeonsi_pipe.h index 8df32416c1f..a0abdec9a2e 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pipe.h +++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.h @@ -185,7 +185,9 @@ struct r600_context { /* r600_blit.c */ void si_init_blit_functions(struct r600_context *rctx); -void si_blit_uncompress_depth(struct pipe_context *ctx, struct r600_resource_texture *texture); +void si_blit_uncompress_depth(struct pipe_context *ctx, + struct r600_resource_texture *texture, + struct r600_resource_texture *staging); void si_flush_depth_textures(struct r600_context *rctx); /* r600_buffer.c */ |