diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-15 23:17:40 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:31 +0200 |
commit | 38e7b8c80552a453580db641c20eba9e86cdf106 (patch) | |
tree | 47321b3de21abb6a2a10b1eae0629369c519ceb0 /src/shader_recompiler/backend/spirv | |
parent | glasm: Implement derivative instructions on GLASM (diff) | |
download | yuzu-38e7b8c80552a453580db641c20eba9e86cdf106.tar yuzu-38e7b8c80552a453580db641c20eba9e86cdf106.tar.gz yuzu-38e7b8c80552a453580db641c20eba9e86cdf106.tar.bz2 yuzu-38e7b8c80552a453580db641c20eba9e86cdf106.tar.lz yuzu-38e7b8c80552a453580db641c20eba9e86cdf106.tar.xz yuzu-38e7b8c80552a453580db641c20eba9e86cdf106.tar.zst yuzu-38e7b8c80552a453580db641c20eba9e86cdf106.zip |
Diffstat (limited to 'src/shader_recompiler/backend/spirv')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.cpp b/src/shader_recompiler/backend/spirv/emit_spirv.cpp index 266ac690c..881a5dc4c 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp @@ -136,7 +136,7 @@ void Traverse(EmitContext& ctx, IR::Program& program) { const Id endloop_label{node.loop.merge->Definition<Id>()}; ctx.OpLoopMerge(endloop_label, continue_label, spv::LoopControlMask::MaskNone); - ctx.OpBranch(node.loop.body->Definition<Id>()); + ctx.OpBranch(body_label); break; } case IR::AbstractSyntaxNode::Type::Break: { |