From 92cc37e365d02aaa2e2d499acac6bdcb7a13d069 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 14 Apr 2020 20:01:26 -0300 Subject: Fix negation of HADD2 constant buffer source (#1116) --- Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs') diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs index c171a986..1da5158f 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs @@ -203,7 +203,7 @@ namespace Ryujinx.Graphics.Shader.Instructions bool saturate = op.RawOpCode.Extract(op is IOpCodeReg ? 32 : 52); Operand[] srcA = GetHalfSrcA(context, isAdd); - Operand[] srcB = GetHalfSrcB(context); + Operand[] srcB = GetHalfSrcB(context, !isAdd); Operand[] res = new Operand[2]; -- cgit v1.2.3