From 7e6dfb9f74704e52b0f06b93cb185fee73b2f755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Wed, 11 Feb 2026 11:19:33 +0100 Subject: [PATCH] dxil/nir: Remove nir_jump_continue from lower_subgroup_scan() We are going to disallow continue statements without loop continue constructs. Reviewed-by: Alyssa Rosenzweig Reviewed-by: Georg Lehmann Reviewed-by: Faith Ekstrand Part-of: --- src/microsoft/compiler/dxil_nir.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/microsoft/compiler/dxil_nir.c b/src/microsoft/compiler/dxil_nir.c index c81aa090bea..48f7996279a 100644 --- a/src/microsoft/compiler/dxil_nir.c +++ b/src/microsoft/compiler/dxil_nir.c @@ -2113,10 +2113,11 @@ lower_subgroup_scan(nir_builder *b, nir_intrinsic_instr *intr, void *data) nir_pop_if(b, if_active_thread); nir_store_var(b, loop_counter_var, nir_iadd_imm(b, loop_counter, 1), 1); - nir_jump(b, nir_jump_continue); + + nir_push_else(b, nif); + nir_jump(b, nir_jump_break); nir_pop_if(b, nif); - nir_jump(b, nir_jump_break); nir_pop_loop(b, loop); result = nir_load_var(b, result_var);