mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-21 11:26:56 +02:00
shader: route inner shared exits first
This commit is contained in:
@@ -1875,7 +1875,8 @@ bool RouteSharedSelectionArm(Graph& graph, uint32_t route_variable) {
|
||||
return false;
|
||||
}
|
||||
const auto block_count = static_cast<uint32_t>(graph.blocks.size());
|
||||
for (uint32_t block_id = 0; block_id < block_count; block_id++) {
|
||||
// Route later/deeper candidates first so earlier shared arms remain structured.
|
||||
for (uint32_t block_id = block_count; block_id-- > 0;) {
|
||||
GotoRouteBlocks route;
|
||||
if (RouteOneSharedArm(graph, block_count, block_id, route_variable, route)) {
|
||||
PlaceGotoRouteBlocks(graph, block_count, route);
|
||||
|
||||
Reference in New Issue
Block a user