From: Marek Olšák Date: Sat, 25 Feb 2023 22:09:06 +0000 (-0500) Subject: radeonsi: check the pm4.reg_va_low_idx assertion unconditionally X-Git-Tag: upstream/23.3.3~12284 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63d5eb35f4f4d13def2b98b52c79928bbde86113;p=platform%2Fupstream%2Fmesa.git 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: --- 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,