aco/assembler: don't reorder branch insertion block index twice

I hate everything about this code.

Fixes: a3d9712e8e ("aco/assembler: chain branches in emit order")
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42324>
This commit is contained in:
Georg Lehmann 2026-06-18 20:03:00 +02:00 committed by Marge Bot
parent db25e87243
commit 1dc34d6dba

View file

@ -1640,7 +1640,7 @@ chain_branches(asm_context& ctx, std::vector<uint32_t>& out, branch_info& branch
bld.reset(&next_block.instructions, it);
} else {
/* Insert the additional branches at the end of the previous non-empty block. */
bld.reset(&ctx.program->blocks[ctx.block_emit_order[insertion_block_idx]].instructions);
bld.reset(&ctx.program->blocks[insertion_block_idx].instructions);
skip_branch_target = next_block.index;
}