summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-07-02 18:45:23 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:40 +0200
commit57f222c56e6facb623dccfe1abdc2bdeba8535ec (patch)
tree3419c84a2e8d30b47bebfc1bead5f21ea93f928a
parentgl_shader_cache: Fixes for async shaders (diff)
downloadyuzu-57f222c56e6facb623dccfe1abdc2bdeba8535ec.tar
yuzu-57f222c56e6facb623dccfe1abdc2bdeba8535ec.tar.gz
yuzu-57f222c56e6facb623dccfe1abdc2bdeba8535ec.tar.bz2
yuzu-57f222c56e6facb623dccfe1abdc2bdeba8535ec.tar.lz
yuzu-57f222c56e6facb623dccfe1abdc2bdeba8535ec.tar.xz
yuzu-57f222c56e6facb623dccfe1abdc2bdeba8535ec.tar.zst
yuzu-57f222c56e6facb623dccfe1abdc2bdeba8535ec.zip
-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 @@
namespace Shader::Optimization {
void VertexATransformPass(IR::Program& program) {
- for (IR::Block* const block : program.blocks) {
- for (IR::Inst& inst : block->Instructions()) {
- if (inst.GetOpcode() == IR::Opcode::Epilogue) {
- return inst.Invalidate();
- }
- }
- }
+ for (IR::Block* const block : program.blocks) {
+ for (IR::Inst& inst : block->Instructions()) {
+ if (inst.GetOpcode() == IR::Opcode::Epilogue) {
+ return inst.Invalidate();
+ }
+ }
+ }
}
void VertexBTransformPass(IR::Program& program) {
- for (IR::Block* const block : program.blocks) {
- for (IR::Inst& inst : block->Instructions()) {
- if (inst.GetOpcode() == IR::Opcode::Prologue) {
- return inst.Invalidate();
- }
- }
- }
+ for (IR::Block* const block : program.blocks) {
+ for (IR::Inst& inst : block->Instructions()) {
+ if (inst.GetOpcode() == IR::Opcode::Prologue) {
+ return inst.Invalidate();
+ }
+ }
+ }
}
} // namespace Shader::Optimization