From: Nicolai Hähnle Date: Tue, 18 Sep 2018 12:16:43 +0000 (+0200) Subject: radeonsi/gfx10: apply DCC MSAA blend workaround X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3aa622aab15dcd8826369f36d43ca89bbef4512a;p=mesa.git radeonsi/gfx10: apply DCC MSAA blend workaround Acked-by: Bas Nieuwenhuizen --- diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 8a540082364..35167f31fb1 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -119,9 +119,7 @@ static void si_emit_cb_render_state(struct si_context *sctx) * Alternatively, we can set CB_COLORi_DCC_CONTROL.OVERWRITE_- * COMBINER_DISABLE, but that would be more complicated. */ - bool oc_disable = (sctx->chip_class == GFX8 || - sctx->chip_class == GFX9) && - blend && + bool oc_disable = blend && blend->blend_enable_4bit & cb_target_mask && sctx->framebuffer.nr_samples >= 2; unsigned watermark = sctx->framebuffer.dcc_overwrite_combiner_watermark;