From 89a87fab66091fef381fa63c5b553764babe20d6 Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Fri, 7 Mar 2025 14:58:53 -0800 Subject: [PATCH] brw: Remove extra SHADER_OPCODE_FLOW emitted during NIR conversion The DO() helper already emits a FLOW. Fixes: d2c39b17793 ("intel/brw: Always have a (non-DO) block after a DO in the CFG") Reviewed-by: Ian Romanick Part-of: --- src/intel/compiler/brw_from_nir.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/intel/compiler/brw_from_nir.cpp b/src/intel/compiler/brw_from_nir.cpp index 11d25dce605..f45a9b78de7 100644 --- a/src/intel/compiler/brw_from_nir.cpp +++ b/src/intel/compiler/brw_from_nir.cpp @@ -471,8 +471,6 @@ brw_from_nir_emit_loop(nir_to_brw_state &ntb, nir_loop *loop) assert(!nir_loop_has_continue_construct(loop)); bld.DO(); - bld.emit(SHADER_OPCODE_FLOW); - brw_from_nir_emit_cf_list(ntb, &loop->body); brw_inst *peep_while = bld.emit(BRW_OPCODE_WHILE);