summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-09-27 09:29:27 +0200
committerSamuel Pitoiset <[email protected]>2017-09-27 09:31:24 +0200
commiteba2abf54b214888d6f33c2c4fca53eb98af407a (patch)
tree61274e15c5792fd6dd4c15506bbce2864df278c8 /src/gallium
parent8860b39d9432216dd40b825fc5750d3601b6cf4e (diff)
gallium/radeon: more use of vi_dcc_formats_are_incompatible()
Found by inspection. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeon/r600_texture.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index f7b9740895b..829d1058271 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -1910,8 +1910,7 @@ void vi_disable_dcc_if_incompatible_format(struct r600_common_context *rctx,
{
struct r600_texture *rtex = (struct r600_texture *)tex;
- if (vi_dcc_enabled(rtex, level) &&
- !vi_dcc_formats_compatible(tex->format, view_format))
+ if (vi_dcc_formats_are_incompatible(tex, level, view_format))
if (!si_texture_disable_dcc(rctx, (struct r600_texture*)tex))
rctx->decompress_dcc(&rctx->b, rtex);
}