mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 05:10:17 +01:00
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@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11182>
This commit is contained in:
parent
017a150984
commit
cd9be8741f
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue