summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/ir_opt/dual_vertex_pass.cpp
diff options
context:
space:
mode:
authorGravatar FernandoS272021-06-04 00:11:16 +0200
committerGravatar ameerj2021-07-22 21:51:34 -0400
commit562af301819227d65a251a2c29c997bf798da7ba (patch)
tree00199eb2c9c34d78430d88e40bd5b27f585daeec /src/shader_recompiler/ir_opt/dual_vertex_pass.cpp
parentshader: Add 2D and 3D variants to SUATOM and SURED (diff)
downloadyuzu-562af301819227d65a251a2c29c997bf798da7ba.tar.gz
yuzu-562af301819227d65a251a2c29c997bf798da7ba.tar.xz
yuzu-562af301819227d65a251a2c29c997bf798da7ba.zip
shader: Fix VertexA Shaders.
Diffstat (limited to 'src/shader_recompiler/ir_opt/dual_vertex_pass.cpp')
-rw-r--r--src/shader_recompiler/ir_opt/dual_vertex_pass.cpp24
1 files changed, 16 insertions, 8 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
14namespace Shader::Optimization { 14namespace Shader::Optimization {
15 15
16void VertexATransformPass(IR::Program&) { 16void 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
20void VertexBTransformPass(IR::Program&) { 26void 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) {
24void 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