mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 00:13:08 +00:00
ir_passes: Add barrier at end of block too
This commit is contained in:
parent
bc85357235
commit
0675f5a554
@ -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…
Reference in New Issue
Block a user