mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
aco: only emit waitcnt on loop continues if we there was some load or export
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
This commit is contained in:
parent
70e39294d7
commit
2c050b49b3
1 changed files with 1 additions and 1 deletions
|
|
@ -648,7 +648,7 @@ void handle_block(Program *program, Block& block, wait_ctx& ctx)
|
|||
/* check if this block is at the end of a loop */
|
||||
for (unsigned succ_idx : block.linear_succs) {
|
||||
/* eliminate any remaining counters */
|
||||
if (succ_idx <= block.index && (ctx.vm_cnt || ctx.exp_cnt || ctx.lgkm_cnt || ctx.vs_cnt)) {
|
||||
if (succ_idx <= block.index && (ctx.vm_cnt || ctx.exp_cnt || ctx.lgkm_cnt || ctx.vs_cnt) && !ctx.gpr_map.empty()) {
|
||||
// TODO: we could do better if we only wait if the regs between the block and other predecessors differ
|
||||
|
||||
aco_ptr<Instruction> branch = std::move(new_instructions.back());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue