mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
spv-in: fix if condition when merge node == false node
format
This commit is contained in:
committed by
Dzmitry Malyshau
parent
2a5c478b21
commit
fa7d4d8b51
@@ -250,7 +250,6 @@ impl FlowGraph {
|
||||
accept: self.naga_traverse(true_node_index, Some(merge_node_index))?,
|
||||
reject: self.naga_traverse(false_node_index, Some(merge_node_index))?,
|
||||
});
|
||||
result.extend(self.naga_traverse(merge_node_index, stop_node_index)?);
|
||||
} else {
|
||||
result.push(crate::Statement::If {
|
||||
condition,
|
||||
@@ -258,10 +257,12 @@ impl FlowGraph {
|
||||
self.block_to_node[&true_id],
|
||||
Some(merge_node_index),
|
||||
)?,
|
||||
reject: self.naga_traverse(merge_node_index, stop_node_index)?,
|
||||
reject: vec![],
|
||||
});
|
||||
}
|
||||
|
||||
result.extend(self.naga_traverse(merge_node_index, stop_node_index)?);
|
||||
|
||||
Ok(result)
|
||||
}
|
||||
Terminator::Switch {
|
||||
|
||||
Reference in New Issue
Block a user