From 87ac5d7d0a14be1457385ccf3e11059aedd95acb Mon Sep 17 00:00:00 2001 From: Friedrich Vock Date: Wed, 12 Apr 2023 17:15:29 +0200 Subject: [PATCH] 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 Reviewed-by: Konstantin Seurer Part-of: --- 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 07b0f71..0677930 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 -- 2.7.4