From 63d5eb35f4f4d13def2b98b52c79928bbde86113 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 25 Feb 2023 17:09:06 -0500 Subject: [PATCH] radeonsi: check the pm4.reg_va_low_idx assertion unconditionally This is not a hot path. We can always do this. Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_state_shaders.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.cpp b/src/gallium/drivers/radeonsi/si_state_shaders.cpp index 0ad0301..2d2c4c8 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.cpp +++ b/src/gallium/drivers/radeonsi/si_state_shaders.cpp @@ -2063,8 +2063,7 @@ static void si_shader_init_pm4_state(struct si_screen *sscreen, struct si_shader assert(0); } - if (unlikely(sscreen->debug_flags & DBG(SQTT))) - assert(shader->pm4.reg_va_low_idx != 0); + assert(shader->pm4.reg_va_low_idx != 0); } static void si_clear_vs_key_inputs(struct si_context *sctx, union si_shader_key *key, -- 2.7.4