summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/ir_opt/dual_vertex_pass.cpp
diff options
context:
space:
mode:
authorGravatar ameerj2021-07-02 12:45:23 -0400
committerGravatar ameerj2021-07-22 21:51:40 -0400
commit57f222c56e6facb623dccfe1abdc2bdeba8535ec (patch)
tree3419c84a2e8d30b47bebfc1bead5f21ea93f928a /src/shader_recompiler/ir_opt/dual_vertex_pass.cpp
parentgl_shader_cache: Fixes for async shaders (diff)
downloadyuzu-57f222c56e6facb623dccfe1abdc2bdeba8535ec.tar.gz
yuzu-57f222c56e6facb623dccfe1abdc2bdeba8535ec.tar.xz
yuzu-57f222c56e6facb623dccfe1abdc2bdeba8535ec.zip
dual_vertex_pass: Clang format
Diffstat (limited to 'src/shader_recompiler/ir_opt/dual_vertex_pass.cpp')
-rw-r--r--src/shader_recompiler/ir_opt/dual_vertex_pass.cpp28
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 @@
14namespace Shader::Optimization { 14namespace Shader::Optimization {
15 15
16void VertexATransformPass(IR::Program& program) { 16void 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
26void VertexBTransformPass(IR::Program& program) { 26void 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