diff options
-rw-r--r-- | src/amd/compiler/aco_insert_waitcnt.cpp | 3 |
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); } |