aco: fix waitcnts for barriers at block ends

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Fixes: d1b9deee ('aco: improve waitcnt insertion around loops')
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
This commit is contained in:
Rhys Perry 2019-11-22 19:38:51 +00:00
parent a3c8bc10aa
commit 517728477c

View file

@ -729,6 +729,9 @@ void handle_block(Program *program, Block& block, wait_ctx& ctx)
}
}
if (!queued_imm.empty())
emit_waitcnt(ctx, new_instructions, queued_imm);
block.instructions.swap(new_instructions);
}