diff options
Diffstat (limited to 'src/shader_recompiler/ir_opt/dual_vertex_pass.cpp')
| -rw-r--r-- | src/shader_recompiler/ir_opt/dual_vertex_pass.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/shader_recompiler/ir_opt/dual_vertex_pass.cpp b/src/shader_recompiler/ir_opt/dual_vertex_pass.cpp index a926123f2..3d2c205c2 100644 --- a/src/shader_recompiler/ir_opt/dual_vertex_pass.cpp +++ b/src/shader_recompiler/ir_opt/dual_vertex_pass.cpp | |||
| @@ -14,23 +14,23 @@ | |||
| 14 | namespace Shader::Optimization { | 14 | namespace Shader::Optimization { |
| 15 | 15 | ||
| 16 | void VertexATransformPass(IR::Program& program) { | 16 | void VertexATransformPass(IR::Program& program) { |
| 17 | for (IR::Block* const block : program.blocks) { | 17 | for (IR::Block* const block : program.blocks) { |
| 18 | for (IR::Inst& inst : block->Instructions()) { | 18 | for (IR::Inst& inst : block->Instructions()) { |
| 19 | if (inst.GetOpcode() == IR::Opcode::Epilogue) { | 19 | if (inst.GetOpcode() == IR::Opcode::Epilogue) { |
| 20 | return inst.Invalidate(); | 20 | return inst.Invalidate(); |
| 21 | } | 21 | } |
| 22 | } | 22 | } |
| 23 | } | 23 | } |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | void VertexBTransformPass(IR::Program& program) { | 26 | void VertexBTransformPass(IR::Program& program) { |
| 27 | for (IR::Block* const block : program.blocks) { | 27 | for (IR::Block* const block : program.blocks) { |
| 28 | for (IR::Inst& inst : block->Instructions()) { | 28 | for (IR::Inst& inst : block->Instructions()) { |
| 29 | if (inst.GetOpcode() == IR::Opcode::Prologue) { | 29 | if (inst.GetOpcode() == IR::Opcode::Prologue) { |
| 30 | return inst.Invalidate(); | 30 | return inst.Invalidate(); |
| 31 | } | 31 | } |
| 32 | } | 32 | } |
| 33 | } | 33 | } |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | } // namespace Shader::Optimization | 36 | } // namespace Shader::Optimization |