aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-10-22 22:48:32 +0200
committerMarek Olšák <[email protected]>2015-10-27 10:49:24 +0100
commit235d38584cd47faa2837cd66ebdc770f295f47c4 (patch)
treeece95aa2beaee083fa42bfc4fd26d2f586fe7b13 /src/gallium/drivers/radeon
parent5bc5dca0cbcb1a13fbe9b3a33489e88531d1eb33 (diff)
radeonsi: properly check if DCC is enabled and allocated
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r--src/gallium/drivers/radeon/r600_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index f7a11a2534c..40075ae7031 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -1367,7 +1367,7 @@ void evergreen_do_fast_color_clear(struct r600_common_context *rctx,
continue;
}
- if (tex->surface.dcc_enabled) {
+ if (tex->dcc_buffer) {
uint32_t reset_value;
bool clear_words_needed;