mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-21 01:38:23 +02:00
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:
parent
db25e87243
commit
1dc34d6dba
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue