diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-28 07:55:04 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-28 07:55:04 +0100 |
commit | 5300a918c60243ad3f3f9a145f0c8f495738e79f (patch) | |
tree | 9b92160c1b6d54db476bfc9b0dc9a4f24bf30848 | |
parent | shader/lea: Fix op_a and op_b usages (diff) | |
download | yuzu-5300a918c60243ad3f3f9a145f0c8f495738e79f.tar yuzu-5300a918c60243ad3f3f9a145f0c8f495738e79f.tar.gz yuzu-5300a918c60243ad3f3f9a145f0c8f495738e79f.tar.bz2 yuzu-5300a918c60243ad3f3f9a145f0c8f495738e79f.tar.lz yuzu-5300a918c60243ad3f3f9a145f0c8f495738e79f.tar.xz yuzu-5300a918c60243ad3f3f9a145f0c8f495738e79f.tar.zst yuzu-5300a918c60243ad3f3f9a145f0c8f495738e79f.zip |
-rw-r--r-- | src/video_core/shader/decode/arithmetic_integer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/shader/decode/arithmetic_integer.cpp b/src/video_core/shader/decode/arithmetic_integer.cpp index 41ddc6221..0f4c3103a 100644 --- a/src/video_core/shader/decode/arithmetic_integer.cpp +++ b/src/video_core/shader/decode/arithmetic_integer.cpp @@ -271,9 +271,8 @@ u32 ShaderIR::DecodeArithmeticInteger(NodeBlock& bb, u32 pc) { UNIMPLEMENTED_IF_MSG(instr.lea.pred48 != static_cast<u64>(Pred::UnusedIndex), "Unhandled LEA Predicate"); - Node shifted_c = Operation(OperationCode::ILogicalShiftLeft, Immediate(1), std::move(op_c)); - Node mul_bc = Operation(OperationCode::IMul, std::move(op_a), std::move(shifted_c)); - Node value = Operation(OperationCode::IAdd, std::move(op_b), std::move(mul_bc)); + Node value = Operation(OperationCode::ILogicalShiftLeft, std::move(op_a), std::move(op_c)); + value = Operation(OperationCode::IAdd, std::move(op_b), std::move(value)); SetRegister(bb, instr.gpr0, std::move(value)); break; |