Mesa (main): radeonsi: dirty msaa_config on rs->multisample_enable change

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 7 07:37:38 UTC 2021


Module: Mesa
Branch: main
Commit: cd9be8741ff0e93bd45aca29e7bb5de649f20a55
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd9be8741ff0e93bd45aca29e7bb5de649f20a55

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Fri Jun  4 12:21:58 2021 +0200

radeonsi: dirty msaa_config on rs->multisample_enable change

si_emit_msaa_config uses si_get_num_coverage_samples, and
si_get_num_coverage_samples depends on old_rs->multisample_enable.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4613
Cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11182>

---

 src/gallium/drivers/radeonsi/si_state.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index f54bac30dce..7a3b5818370 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -1013,6 +1013,8 @@ static void si_bind_rs_state(struct pipe_context *ctx, void *state)
    if (old_rs->multisample_enable != rs->multisample_enable) {
       si_mark_atom_dirty(sctx, &sctx->atoms.s.db_render_state);
 
+      si_mark_atom_dirty(sctx, &sctx->atoms.s.msaa_config);
+
       /* Update the small primitive filter workaround if necessary. */
       if (sctx->screen->info.has_msaa_sample_loc_bug && sctx->framebuffer.nr_samples > 1)
          si_mark_atom_dirty(sctx, &sctx->atoms.s.msaa_sample_locs);



More information about the mesa-commit mailing list