mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-22 04:24:44 +00:00
ir_passes: Add barrier at end of block too
This commit is contained in:
parent
bc85357235
commit
0675f5a554
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,10 @@ static void EmitBarrierInBlock(IR::Block* block) {
|
|||
action = BarrierAction::BarrierOnRead;
|
||||
}
|
||||
}
|
||||
if (action != BarrierAction::None) {
|
||||
IR::IREmitter ir{*block, --block->end()};
|
||||
ir.Barrier();
|
||||
}
|
||||
}
|
||||
|
||||
// Inserts a barrier after divergent conditional blocks to avoid undefined
|
||||
|
|
Loading…
Add table
Reference in a new issue