From bdd6449769527f55d7cba3443da08ae03448de34 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 7 Apr 2017 12:36:59 +0200 Subject: [PATCH] radeonsi: don't mark non-dirty textures with CMASK as compressed MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit because the compression is skipped with non-dirty textures. Reviewed-by: Samuel Pitoiset Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_descriptors.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 2f6f8eb57e8..971aa43c436 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -555,8 +555,9 @@ static void si_set_sampler_view(struct si_context *sctx, static bool is_compressed_colortex(struct r600_texture *rtex) { - return rtex->cmask.size || rtex->fmask.size || - (rtex->dcc_offset && rtex->dirty_level_mask); + return rtex->fmask.size || + (rtex->dirty_level_mask && + (rtex->cmask.size || rtex->dcc_offset)); } static bool depth_needs_decompression(struct r600_texture *rtex, -- 2.30.2