radeonsi: fix the DCC MSAA bug workaround
authorMarek Olšák <marek.olsak@amd.com>
Thu, 30 Jan 2020 21:58:15 +0000 (16:58 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 10 Feb 2020 22:24:02 +0000 (17:24 -0500)
Cc: 19.3 20.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3646>

src/gallium/drivers/radeonsi/si_state.c

index afa1029c1ac9b0ebb943ad82e2a562d56986d851..e3e0ffa64e10ea92ddbb8e296f5fc640f467a0b8 100644 (file)
@@ -685,7 +685,7 @@ static void si_bind_blend_state(struct pipe_context *ctx, void *state)
 
        if (old_blend->cb_target_mask != blend->cb_target_mask ||
            old_blend->dual_src_blend != blend->dual_src_blend ||
-           (old_blend->blend_enable_4bit != blend->blend_enable_4bit &&
+           (old_blend->dcc_msaa_corruption_4bit != blend->dcc_msaa_corruption_4bit &&
             sctx->framebuffer.nr_samples >= 2 &&
             sctx->screen->dcc_msaa_allowed))
                si_mark_atom_dirty(sctx, &sctx->atoms.s.cb_render_state);