Mesa (staging/20.0): radeonsi: fix the DCC MSAA bug workaround

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Feb 11 17:59:18 UTC 2020


Module: Mesa
Branch: staging/20.0
Commit: f93c8d8598f8a9a8908b6b2829e540b1eb6970b9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f93c8d8598f8a9a8908b6b2829e540b1eb6970b9

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Jan 30 16:58:15 2020 -0500

radeonsi: fix the DCC MSAA bug workaround

Cc: 19.3 20.0 <mesa-stable at lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3646>
(cherry picked from commit fbb27eebc8cab1a5d70ea67a37de8d18f20a88f0)

---

 .pick_status.json                       | 2 +-
 src/gallium/drivers/radeonsi/si_state.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.pick_status.json b/.pick_status.json
index 086d29af71e..13b855636a3 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -355,7 +355,7 @@
         "description": "radeonsi: fix the DCC MSAA bug workaround",
         "nominated": true,
         "nomination_type": 0,
-        "resolution": 0,
+        "resolution": 1,
         "master_sha": null,
         "because_sha": null
     },
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index afa1029c1ac..e3e0ffa64e1 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -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);



More information about the mesa-commit mailing list