diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-04-03 10:17:08 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:26 +0200 |
commit | c4aab5c40ec1347da9811169bbc3dfb23632ab98 (patch) | |
tree | 3324fed6e7e209962f8112efa0fe642267676bca /src/shader_recompiler/frontend | |
parent | shader: Fix FADD32I (diff) | |
download | yuzu-c4aab5c40ec1347da9811169bbc3dfb23632ab98.tar yuzu-c4aab5c40ec1347da9811169bbc3dfb23632ab98.tar.gz yuzu-c4aab5c40ec1347da9811169bbc3dfb23632ab98.tar.bz2 yuzu-c4aab5c40ec1347da9811169bbc3dfb23632ab98.tar.lz yuzu-c4aab5c40ec1347da9811169bbc3dfb23632ab98.tar.xz yuzu-c4aab5c40ec1347da9811169bbc3dfb23632ab98.tar.zst yuzu-c4aab5c40ec1347da9811169bbc3dfb23632ab98.zip |
Diffstat (limited to 'src/shader_recompiler/frontend')
-rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_helper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_helper.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_helper.cpp index d0c6ba1aa..0dbeb7f56 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_helper.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/half_floating_point_helper.cpp @@ -51,9 +51,9 @@ IR::U32 MergeResult(IR::IREmitter& ir, IR::Reg dest, const IR::F16& lhs, const I case Merge::MRG_H0: case Merge::MRG_H1: { const IR::Value vector{ir.UnpackFloat2x16(ir.GetReg(dest))}; - const bool h0{merge == Merge::MRG_H0}; - const IR::F16& insert{h0 ? lhs : rhs}; - return ir.PackFloat2x16(ir.CompositeInsert(vector, insert, h0 ? 0 : 1)); + const bool is_h0{merge == Merge::MRG_H0}; + const IR::F16 insert{ir.FPConvert(16, is_h0 ? lhs : rhs)}; + return ir.PackFloat2x16(ir.CompositeInsert(vector, insert, is_h0 ? 0 : 1)); } } throw InvalidArgument("Invalid merge {}", merge); |