aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2019-11-22 19:38:51 +0000
committerRhys Perry <[email protected]>2019-11-22 19:56:31 +0000
commit517728477cd5b682ea4c2474e73fdb71b449e6f5 (patch)
treefc0d45887575e2887a007ad142e41e6b1b599b67 /src
parenta3c8bc10aa9294bd78c0e2cf5818fb4b8a42cd7a (diff)
aco: fix waitcnts for barriers at block ends
Signed-off-by: Rhys Perry <[email protected]> Fixes: d1b9deee ('aco: improve waitcnt insertion around loops') Reviewed-by: Daniel Schürmann <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/compiler/aco_insert_waitcnt.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/compiler/aco_insert_waitcnt.cpp b/src/amd/compiler/aco_insert_waitcnt.cpp
index 725e8914071..f3521013640 100644
--- a/src/amd/compiler/aco_insert_waitcnt.cpp
+++ b/src/amd/compiler/aco_insert_waitcnt.cpp
@@ -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);
}