radeonsi/gfx12: fix stencil corruption

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tested-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29564>
This commit is contained in:
Marek Olšák 2024-06-05 21:18:36 -04:00
parent 1b9ce2625f
commit 9ab9644c1f

View file

@ -5731,7 +5731,7 @@ static void gfx12_init_gfx_preamble_state(struct si_context *sctx)
/* Context registers */
ac_pm4_set_reg(&pm4->base, R_028000_DB_RENDER_CONTROL, 0);
ac_pm4_set_reg(&pm4->base, R_02800C_DB_RENDER_OVERRIDE, 0);
ac_pm4_set_reg(&pm4->base, R_02800C_DB_RENDER_OVERRIDE, S_02800C_FORCE_STENCIL_VALID(1));
ac_pm4_set_reg(&pm4->base, R_028040_DB_GL1_INTERFACE_CONTROL, 0);
ac_pm4_set_reg(&pm4->base, R_028048_DB_MEM_TEMPORAL,
S_028048_Z_TEMPORAL_READ(zs_read_temporal_hint) |