Module: Mesa Branch: main Commit: 87ac5d7d0a14be1457385ccf3e11059aedd95acb URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=87ac5d7d0a14be1457385ccf3e11059aedd95acb
Author: Friedrich Vock <[email protected]> Date: Wed Apr 12 17:15:29 2023 +0200 nir: Remove unnecessary assert in nir_before_src This condition can occur in the wild (more specifically in RT shader call lowering), and it is handled correctly. Cc: mesa-stable Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Konstantin Seurer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22536> --- src/compiler/nir/nir.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 07b0f71957b..0677930f661 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -4251,7 +4251,6 @@ nir_before_src(nir_src *src) if (src->is_if) { nir_block *prev_block = nir_cf_node_as_block(nir_cf_node_prev(&src->parent_if->cf_node)); - assert(!nir_block_ends_in_jump(prev_block)); return nir_after_block(prev_block); } else if (src->parent_instr->type == nir_instr_type_phi) { #ifndef NDEBUG
