mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
radeonsi: emit_msaa_sample_locs packets optimization
Remembering latest states of registers to eliminate redunant SET_CONTEXT_REG packets Signed-off-by: Sonny Jiang <sonny.jiang@amd.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
a1b4b00ce2
commit
06b47005d3
2 changed files with 6 additions and 2 deletions
|
|
@ -3250,8 +3250,10 @@ static void si_emit_msaa_sample_locs(struct si_context *sctx)
|
||||||
rs && !rs->multisample_enable)
|
rs && !rs->multisample_enable)
|
||||||
small_prim_filter_cntl &= C_028830_SMALL_PRIM_FILTER_ENABLE;
|
small_prim_filter_cntl &= C_028830_SMALL_PRIM_FILTER_ENABLE;
|
||||||
|
|
||||||
radeon_set_context_reg(cs, R_028830_PA_SU_SMALL_PRIM_FILTER_CNTL,
|
radeon_opt_set_context_reg(sctx,
|
||||||
small_prim_filter_cntl);
|
R_028830_PA_SU_SMALL_PRIM_FILTER_CNTL,
|
||||||
|
SI_TRACKED_PA_SU_SMALL_PRIM_FILTER_CNTL,
|
||||||
|
small_prim_filter_cntl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -227,6 +227,8 @@ enum si_tracked_reg {
|
||||||
SI_TRACKED_DB_EQAA,
|
SI_TRACKED_DB_EQAA,
|
||||||
SI_TRACKED_PA_SC_MODE_CNTL_1,
|
SI_TRACKED_PA_SC_MODE_CNTL_1,
|
||||||
|
|
||||||
|
SI_TRACKED_PA_SU_SMALL_PRIM_FILTER_CNTL,
|
||||||
|
|
||||||
SI_NUM_TRACKED_REGS,
|
SI_NUM_TRACKED_REGS,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue