1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-10-01 12:30:00 +02:00

shader: Add missing fsetp negation bit on srcB (#760)

This commit is contained in:
Rodrigo Locatti 2019-09-04 19:03:11 -03:00 committed by jduncanator
parent b9c94ada34
commit ebea4967f8

View file

@ -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 srcB = context.FPAbsNeg(GetSrcB(context), absoluteB, negateB);
Operand p0Res = GetFPComparison(context, cmpOp, srcA, srcB);