From ebea4967f8102942fc53082305d3498db2c21e6a Mon Sep 17 00:00:00 2001 From: Rodrigo Locatti Date: Wed, 4 Sep 2019 19:03:11 -0300 Subject: [PATCH] shader: Add missing fsetp negation bit on srcB (#760) --- Ryujinx.Graphics/Shader/Instructions/InstEmitFArith.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Ryujinx.Graphics/Shader/Instructions/InstEmitFArith.cs b/Ryujinx.Graphics/Shader/Instructions/InstEmitFArith.cs index 8c64c097..b22639de 100644 --- a/Ryujinx.Graphics/Shader/Instructions/InstEmitFArith.cs +++ b/Ryujinx.Graphics/Shader/Instructions/InstEmitFArith.cs @@ -158,9 +158,10 @@ namespace Ryujinx.Graphics.Shader.Instructions bool absoluteA = op.RawOpCode.Extract(7); bool negateA = op.RawOpCode.Extract(43); bool absoluteB = op.RawOpCode.Extract(44); + bool negateB = op.RawOpCode.Extract(6); - Operand srcA = context.FPAbsNeg (GetSrcA(context), absoluteA, negateA); - Operand srcB = context.FPAbsolute(GetSrcB(context), absoluteB); + Operand srcA = context.FPAbsNeg(GetSrcA(context), absoluteA, negateA); + Operand srcB = context.FPAbsNeg(GetSrcB(context), absoluteB, negateB); Operand p0Res = GetFPComparison(context, cmpOp, srcA, srcB);