diff options
Diffstat (limited to 'src/shader_recompiler/ir_opt')
| -rw-r--r-- | src/shader_recompiler/ir_opt/dual_vertex_pass.cpp | 24 | ||||
| -rw-r--r-- | src/shader_recompiler/ir_opt/passes.h | 1 |
2 files changed, 16 insertions, 9 deletions
diff --git a/src/shader_recompiler/ir_opt/dual_vertex_pass.cpp b/src/shader_recompiler/ir_opt/dual_vertex_pass.cpp index b0a9f5258..a926123f2 100644 --- a/src/shader_recompiler/ir_opt/dual_vertex_pass.cpp +++ b/src/shader_recompiler/ir_opt/dual_vertex_pass.cpp | |||
| @@ -13,16 +13,24 @@ | |||
| 13 | 13 | ||
| 14 | namespace Shader::Optimization { | 14 | namespace Shader::Optimization { |
| 15 | 15 | ||
| 16 | void VertexATransformPass(IR::Program&) { | 16 | void VertexATransformPass(IR::Program& program) { |
| 17 | throw NotImplementedException("VertexA pass"); | 17 | for (IR::Block* const block : program.blocks) { |
| 18 | for (IR::Inst& inst : block->Instructions()) { | ||
| 19 | if (inst.GetOpcode() == IR::Opcode::Epilogue) { | ||
| 20 | return inst.Invalidate(); | ||
| 21 | } | ||
| 22 | } | ||
| 23 | } | ||
| 18 | } | 24 | } |
| 19 | 25 | ||
| 20 | void VertexBTransformPass(IR::Program&) { | 26 | void VertexBTransformPass(IR::Program& program) { |
| 21 | throw NotImplementedException("VertexA pass"); | 27 | for (IR::Block* const block : program.blocks) { |
| 22 | } | 28 | for (IR::Inst& inst : block->Instructions()) { |
| 23 | 29 | if (inst.GetOpcode() == IR::Opcode::Prologue) { | |
| 24 | void DualVertexJoinPass(IR::Program&) { | 30 | return inst.Invalidate(); |
| 25 | throw NotImplementedException("VertexA pass"); | 31 | } |
| 32 | } | ||
| 33 | } | ||
| 26 | } | 34 | } |
| 27 | 35 | ||
| 28 | } // namespace Shader::Optimization | 36 | } // namespace Shader::Optimization |
diff --git a/src/shader_recompiler/ir_opt/passes.h b/src/shader_recompiler/ir_opt/passes.h index e9cb8546a..5ebde49ea 100644 --- a/src/shader_recompiler/ir_opt/passes.h +++ b/src/shader_recompiler/ir_opt/passes.h | |||
| @@ -25,7 +25,6 @@ void VerificationPass(const IR::Program& program); | |||
| 25 | // Dual Vertex | 25 | // Dual Vertex |
| 26 | void VertexATransformPass(IR::Program& program); | 26 | void VertexATransformPass(IR::Program& program); |
| 27 | void VertexBTransformPass(IR::Program& program); | 27 | void VertexBTransformPass(IR::Program& program); |
| 28 | void DualVertexJoinPass(IR::Program& program); | ||
| 29 | void JoinTextureInfo(Info& base, Info& source); | 28 | void JoinTextureInfo(Info& base, Info& source); |
| 30 | void JoinStorageInfo(Info& base, Info& source); | 29 | void JoinStorageInfo(Info& base, Info& source); |
| 31 | 30 | ||