summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-26 03:42:33 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-26 03:57:54 +0200
commit2a96bea6a7efd9efaaa8d1d72f1eb8ca27cb81f8 (patch)
tree6cd0335814b5dacb81ac60d1ffba9caa22164e67 /src/video_core
parentshader/arithmetic_integer: Implement IADD.X (diff)
downloadyuzu-2a96bea6a7efd9efaaa8d1d72f1eb8ca27cb81f8.tar
yuzu-2a96bea6a7efd9efaaa8d1d72f1eb8ca27cb81f8.tar.gz
yuzu-2a96bea6a7efd9efaaa8d1d72f1eb8ca27cb81f8.tar.bz2
yuzu-2a96bea6a7efd9efaaa8d1d72f1eb8ca27cb81f8.tar.lz
yuzu-2a96bea6a7efd9efaaa8d1d72f1eb8ca27cb81f8.tar.xz
yuzu-2a96bea6a7efd9efaaa8d1d72f1eb8ca27cb81f8.tar.zst
yuzu-2a96bea6a7efd9efaaa8d1d72f1eb8ca27cb81f8.zip
Diffstat (limited to 'src/video_core')
-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 2a3311cb8..addd7f533 100644
--- a/src/video_core/shader/decode/arithmetic_integer.cpp
+++ b/src/video_core/shader/decode/arithmetic_integer.cpp
@@ -40,12 +40,12 @@ u32 ShaderIR::DecodeArithmeticInteger(NodeBlock& bb, u32 pc) {
op_a = GetOperandAbsNegInteger(op_a, false, instr.alu_integer.negate_a, true);
op_b = GetOperandAbsNegInteger(op_b, false, instr.alu_integer.negate_b, true);
- Node value = Operation(OperationCode::IAdd, op_a, op_b);
+ Node value = Operation(OperationCode::UAdd, op_a, op_b);
if (instr.iadd.x) {
Node carry = GetInternalFlag(InternalFlag::Carry);
Node x = Operation(OperationCode::Select, std::move(carry), Immediate(1), Immediate(0));
- value = Operation(OperationCode::IAdd, std::move(value), std::move(x));
+ value = Operation(OperationCode::UAdd, std::move(value), std::move(x));
}
if (instr.generates_cc) {