mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 05:48:07 +02:00
radeonsi: don't emit DB_STENCIL_CONTROL if it has no effect
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
6743dc01fd
commit
30882ba0dd
1 changed files with 2 additions and 1 deletions
|
|
@ -1085,7 +1085,8 @@ static void *si_create_dsa_state(struct pipe_context *ctx,
|
|||
}
|
||||
|
||||
si_pm4_set_reg(pm4, R_028800_DB_DEPTH_CONTROL, db_depth_control);
|
||||
si_pm4_set_reg(pm4, R_02842C_DB_STENCIL_CONTROL, db_stencil_control);
|
||||
if (state->stencil[0].enabled)
|
||||
si_pm4_set_reg(pm4, R_02842C_DB_STENCIL_CONTROL, db_stencil_control);
|
||||
if (state->depth.bounds_test) {
|
||||
si_pm4_set_reg(pm4, R_028020_DB_DEPTH_BOUNDS_MIN, fui(state->depth.bounds_min));
|
||||
si_pm4_set_reg(pm4, R_028024_DB_DEPTH_BOUNDS_MAX, fui(state->depth.bounds_max));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue