From 2fd74a05bb1a53f2edbc2df3f7e77f84c630ac5f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 3 Jun 2016 20:51:47 +0200 Subject: [PATCH] radeonsi: don't flag renderbuffer feedback loop if DCC has just been disabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle Reviewed-by: Bas Nieuwenhuizen --- src/gallium/drivers/radeonsi/si_descriptors.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index b2c37135e95..e0c966666a1 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -606,7 +606,9 @@ static void si_set_shader_image(struct si_context *ctx, * The decompression is relatively cheap if the surface * has been decompressed already. */ - if (!r600_texture_disable_dcc(&screen->b, tex)) + if (r600_texture_disable_dcc(&screen->b, tex)) + uses_dcc = false; + else ctx->b.decompress_dcc(&ctx->b.b, tex); } @@ -616,7 +618,7 @@ static void si_set_shader_image(struct si_context *ctx, images->compressed_colortex_mask &= ~(1 << slot); } - if (tex->dcc_offset && + if (uses_dcc && p_atomic_read(&tex->framebuffers_bound)) ctx->need_check_render_feedback = true; -- 2.30.2