summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/spirv/emit_spirv.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-15 03:01:01 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:31 +0200
commitab5dbe7c299d904e36099d209b7290e538a84745 (patch)
treed2e9642670d5839f75f091a3bf932a495b7750dc /src/shader_recompiler/backend/spirv/emit_spirv.cpp
parentglasm: Initial implementation of phi nodes on GLASM (diff)
downloadyuzu-ab5dbe7c299d904e36099d209b7290e538a84745.tar
yuzu-ab5dbe7c299d904e36099d209b7290e538a84745.tar.gz
yuzu-ab5dbe7c299d904e36099d209b7290e538a84745.tar.bz2
yuzu-ab5dbe7c299d904e36099d209b7290e538a84745.tar.lz
yuzu-ab5dbe7c299d904e36099d209b7290e538a84745.tar.xz
yuzu-ab5dbe7c299d904e36099d209b7290e538a84745.tar.zst
yuzu-ab5dbe7c299d904e36099d209b7290e538a84745.zip
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv.cpp')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv.cpp3
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) {
IR::Block* current_block{};
for (const IR::AbstractSyntaxNode& node : program.syntax_list) {
switch (node.type) {
- case IR::AbstractSyntaxNode::Type::Block:
+ case IR::AbstractSyntaxNode::Type::Block: {
const Id label{node.block->Definition<Id>()};
if (current_block) {
ctx.OpBranch(label);
@@ -122,6 +122,7 @@ void Traverse(EmitContext& ctx, IR::Program& program) {
EmitInst(ctx, &inst);
}
break;
+ }
case IR::AbstractSyntaxNode::Type::If: {
const Id if_label{node.if_node.body->Definition<Id>()};
const Id endif_label{node.if_node.merge->Definition<Id>()};