[Mesa-dev] [PATCH 1/2] gallium/radeon: more use of vi_dcc_formats_are_incompatible()

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Sep 22 07:22:13 UTC 2017


Found by inspection.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/gallium/drivers/radeon/r600_texture.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index e9507c3f54..bf4f999976 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -2008,8 +2008,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 (!r600_texture_disable_dcc(rctx, (struct r600_texture*)tex))
 			rctx->decompress_dcc(&rctx->b, rtex);
 }
-- 
2.14.1



More information about the mesa-dev mailing list