diff options
Diffstat (limited to 'src/shader_recompiler')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.cpp b/src/shader_recompiler/backend/spirv/emit_spirv.cpp index 7bf8c78de..266ac690c 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp | |||
| @@ -111,7 +111,7 @@ void Traverse(EmitContext& ctx, IR::Program& program) { | |||
| 111 | IR::Block* current_block{}; | 111 | IR::Block* current_block{}; |
| 112 | for (const IR::AbstractSyntaxNode& node : program.syntax_list) { | 112 | for (const IR::AbstractSyntaxNode& node : program.syntax_list) { |
| 113 | switch (node.type) { | 113 | switch (node.type) { |
| 114 | case IR::AbstractSyntaxNode::Type::Block: | 114 | case IR::AbstractSyntaxNode::Type::Block: { |
| 115 | const Id label{node.block->Definition<Id>()}; | 115 | const Id label{node.block->Definition<Id>()}; |
| 116 | if (current_block) { | 116 | if (current_block) { |
| 117 | ctx.OpBranch(label); | 117 | ctx.OpBranch(label); |
| @@ -122,6 +122,7 @@ void Traverse(EmitContext& ctx, IR::Program& program) { | |||
| 122 | EmitInst(ctx, &inst); | 122 | EmitInst(ctx, &inst); |
| 123 | } | 123 | } |
| 124 | break; | 124 | break; |
| 125 | } | ||
| 125 | case IR::AbstractSyntaxNode::Type::If: { | 126 | case IR::AbstractSyntaxNode::Type::If: { |
| 126 | const Id if_label{node.if_node.body->Definition<Id>()}; | 127 | const Id if_label{node.if_node.body->Definition<Id>()}; |
| 127 | const Id endif_label{node.if_node.merge->Definition<Id>()}; | 128 | const Id endif_label{node.if_node.merge->Definition<Id>()}; |