From e1c65ce680cf7c4a8b51f3b087065a1c4051248b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 23 May 2024 17:25:26 -0400 Subject: [PATCH] radeonsi/gfx12: fix a regression in si_init_depth_surface si_htile_enabled has an assertion not expecting GFX12 Fixes: d0810d528c602cdc7e2 - radeonsi: use the common helper for initializing DS surfaces Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 3c398c46688..a0d60461ba3 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -2794,7 +2794,7 @@ static void si_init_depth_surface(struct si_context *sctx, struct si_surface *su .first_layer = surf->base.u.tex.first_layer, .last_layer = surf->base.u.tex.last_layer, .allow_expclear = true, - .htile_enabled = si_htile_enabled(tex, level, PIPE_MASK_ZS), + .htile_enabled = sctx->gfx_level < GFX12 && si_htile_enabled(tex, level, PIPE_MASK_ZS), .htile_stencil_disabled = tex->htile_stencil_disabled, };