From cd9be8741ff0e93bd45aca29e7bb5de649f20a55 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Fri, 4 Jun 2021 12:21:58 +0200 Subject: [PATCH] radeonsi: dirty msaa_config on rs->multisample_enable change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Part-of: --- 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);