diff options
| author | 2020-04-24 14:30:13 -0400 | |
|---|---|---|
| committer | 2020-04-24 14:30:13 -0400 | |
| commit | 7c8acb00258c4853dddb87c431a76c569a1bef07 (patch) | |
| tree | 41568a0e62923a7e56b389778b61fc37e3c8a8dd | |
| parent | Merge pull request #3786 from degasus/fix_warnings (diff) | |
| parent | shader/arithmetic_integer: Fix LEA_IMM encoding (diff) | |
| download | yuzu-7c8acb00258c4853dddb87c431a76c569a1bef07.tar.gz yuzu-7c8acb00258c4853dddb87c431a76c569a1bef07.tar.xz yuzu-7c8acb00258c4853dddb87c431a76c569a1bef07.zip | |
Merge pull request #3749 from ReinUsesLisp/lea-imm
shader/arithmetic_integer: Fix LEA_IMM encoding
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/shader/decode/arithmetic_integer.cpp | 4 |
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 0f4c3103a..9af8c606d 100644 --- a/src/video_core/shader/decode/arithmetic_integer.cpp +++ b/src/video_core/shader/decode/arithmetic_integer.cpp | |||
| @@ -249,8 +249,8 @@ u32 ShaderIR::DecodeArithmeticInteger(NodeBlock& bb, u32 pc) { | |||
| 249 | } | 249 | } |
| 250 | case OpCode::Id::LEA_IMM: { | 250 | case OpCode::Id::LEA_IMM: { |
| 251 | const bool neg = instr.lea.imm.neg != 0; | 251 | const bool neg = instr.lea.imm.neg != 0; |
| 252 | return {Immediate(static_cast<u32>(instr.lea.imm.entry_a)), | 252 | return {GetOperandAbsNegInteger(GetRegister(instr.gpr8), false, neg, true), |
| 253 | GetOperandAbsNegInteger(GetRegister(instr.gpr8), false, neg, true), | 253 | Immediate(static_cast<u32>(instr.lea.imm.entry_a)), |
| 254 | Immediate(static_cast<u32>(instr.lea.imm.entry_b))}; | 254 | Immediate(static_cast<u32>(instr.lea.imm.entry_b))}; |
| 255 | } | 255 | } |
| 256 | case OpCode::Id::LEA_RZ: { | 256 | case OpCode::Id::LEA_RZ: { |