summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/r600_pipe_common.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2016-06-21 16:16:15 +0200
committerMarek Olšák <marek.olsak@amd.com>2016-06-29 20:12:00 +0200
commit9124457bff70686ea804d7e35fb63bea5db5a8a2 (patch)
tree9e9b1bdd9e42caab06096e6c446bb41632f5b1be /src/gallium/drivers/radeon/r600_pipe_common.h
parentfa7c927625ec1904a659edfdd677b5752165590a (diff)
downloadexternal_mesa3d-9124457bff70686ea804d7e35fb63bea5db5a8a2.zip
external_mesa3d-9124457bff70686ea804d7e35fb63bea5db5a8a2.tar.gz
external_mesa3d-9124457bff70686ea804d7e35fb63bea5db5a8a2.tar.bz2
gallium/radeon: add state setup for a separate DCC buffer
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_pipe_common.h')
-rw-r--r--src/gallium/drivers/radeon/r600_pipe_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.h b/src/gallium/drivers/radeon/r600_pipe_common.h
index 75dc5ac..b411b23 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.h
+++ b/src/gallium/drivers/radeon/r600_pipe_common.h
@@ -265,6 +265,14 @@ struct r600_texture {
bool non_disp_tiling; /* R600-Cayman only */
+ /* Whether the texture is a displayable back buffer and needs DCC
+ * decompression, which is expensive. Therefore, it's enabled only
+ * if statistics suggest that it will pay off and it's allocated
+ * separately. Limited to target == 2D and last_level == 0. If enabled,
+ * dcc_offset contains the absolute GPUVM address, not the relative one.
+ */
+ struct r600_resource *dcc_separate_buffer;
+
/* Counter that should be non-zero if the texture is bound to a
* framebuffer. Implemented in radeonsi only.
*/