From 3aa622aab15dcd8826369f36d43ca89bbef4512a Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Tue, 18 Sep 2018 14:16:43 +0200 Subject: radeonsi/gfx10: apply DCC MSAA blend workaround Acked-by: Bas Nieuwenhuizen --- src/gallium/drivers/radeonsi/si_state.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/gallium/drivers') 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; -- cgit v1.2.3