mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-03 14:48:46 +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;
|
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
|
// Inserts a barrier after divergent conditional blocks to avoid undefined
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue