From 76b0ad33bc6399c803dd74161f1510158d358841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 21 May 2024 12:32:50 -0400 Subject: [PATCH] radeonsi/gfx12: fix the alpha ref value This was missed when the code was refactored. Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_state.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 49c33e22eba..2b532c24032 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -1625,6 +1625,10 @@ static void si_pm4_emit_dsa(struct si_context *sctx, unsigned index) } gfx12_end_context_regs(); radeon_end(); /* don't track context rolls on GFX12 */ + + gfx12_opt_push_gfx_sh_reg(R_00B030_SPI_SHADER_USER_DATA_PS_0 + SI_SGPR_ALPHA_REF * 4, + SI_TRACKED_SPI_SHADER_USER_DATA_PS__ALPHA_REF, + state->spi_shader_user_data_ps_alpha_ref); } else if (sctx->screen->info.has_set_context_pairs_packed) { radeon_begin(&sctx->gfx_cs); gfx11_begin_packed_context_regs();