summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2020-03-27 18:37:18 -0300
committerGravatar ReinUsesLisp2020-03-27 18:37:20 -0300
commit523a709bf1382419495035161c67d5e8dd3e2556 (patch)
tree35cbf15eddcc6f5a58a38291ef2d7d9e2453d30b /src
parentshader/lea: Remove const and use move when possible (diff)
downloadyuzu-523a709bf1382419495035161c67d5e8dd3e2556.tar.gz
yuzu-523a709bf1382419495035161c67d5e8dd3e2556.tar.xz
yuzu-523a709bf1382419495035161c67d5e8dd3e2556.zip
shader/lea: Fix op_a and op_b usages
They were swapped.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/decode/arithmetic_integer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/decode/arithmetic_integer.cpp b/src/video_core/shader/decode/arithmetic_integer.cpp
index 5d546ddec..41ddc6221 100644
--- a/src/video_core/shader/decode/arithmetic_integer.cpp
+++ b/src/video_core/shader/decode/arithmetic_integer.cpp
@@ -272,8 +272,8 @@ u32 ShaderIR::DecodeArithmeticInteger(NodeBlock& bb, u32 pc) {
272 "Unhandled LEA Predicate"); 272 "Unhandled LEA Predicate");
273 273
274 Node shifted_c = Operation(OperationCode::ILogicalShiftLeft, Immediate(1), std::move(op_c)); 274 Node shifted_c = Operation(OperationCode::ILogicalShiftLeft, Immediate(1), std::move(op_c));
275 Node mul_bc = Operation(OperationCode::IMul, std::move(op_b), std::move(shifted_c)); 275 Node mul_bc = Operation(OperationCode::IMul, std::move(op_a), std::move(shifted_c));
276 Node value = Operation(OperationCode::IAdd, std::move(op_a), std::move(mul_bc)); 276 Node value = Operation(OperationCode::IAdd, std::move(op_b), std::move(mul_bc));
277 SetRegister(bb, instr.gpr0, std::move(value)); 277 SetRegister(bb, instr.gpr0, std::move(value));
278 278
279 break; 279 break;