diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-03-30 08:19:50 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:25 +0200 |
commit | 514a6b07eedace58b4a0c95282bdfc729623d1d9 (patch) | |
tree | b384c882fa5e24ce9a0a2d287076d23949b3e266 /src/shader_recompiler/backend/spirv | |
parent | shader: Fix indirect branches to scheduler instructions (diff) | |
download | yuzu-514a6b07eedace58b4a0c95282bdfc729623d1d9.tar yuzu-514a6b07eedace58b4a0c95282bdfc729623d1d9.tar.gz yuzu-514a6b07eedace58b4a0c95282bdfc729623d1d9.tar.bz2 yuzu-514a6b07eedace58b4a0c95282bdfc729623d1d9.tar.lz yuzu-514a6b07eedace58b4a0c95282bdfc729623d1d9.tar.xz yuzu-514a6b07eedace58b4a0c95282bdfc729623d1d9.tar.zst yuzu-514a6b07eedace58b4a0c95282bdfc729623d1d9.zip |
Diffstat (limited to 'src/shader_recompiler/backend/spirv')
-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 2e7e6bb0c..6389d80bf 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp @@ -288,7 +288,8 @@ Id EmitPhi(EmitContext& ctx, IR::Inst* inst) { operands.push_back(PhiArgDef(ctx, inst, index)); operands.push_back(inst->PhiBlock(index)->Definition<Id>()); } - const Id result_type{TypeId(ctx, inst->Arg(0).Type())}; + // The type of a phi instruction is stored in its flags + const Id result_type{TypeId(ctx, inst->Flags<IR::Type>())}; return ctx.OpPhi(result_type, std::span(operands.data(), operands.size())); } |