1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-10 12:41:50 +00:00

Fix incorrect saturation on HADD2 and HMUL2 shader instructions

This commit is contained in:
gdk 2019-10-15 00:11:52 -03:00 committed by Thog
parent 873bb4c15a
commit 717ace6f6e

View file

@ -210,7 +210,7 @@ namespace Ryujinx.Graphics.Shader.Instructions
{ {
OpCode op = context.CurrOp; OpCode op = context.CurrOp;
bool saturate = op.RawOpCode.Extract(op is OpCodeAluImm32 ? 52 : 32); bool saturate = op.RawOpCode.Extract(op is IOpCodeReg ? 32 : 52);
Operand[] srcA = GetHalfSrcA(context); Operand[] srcA = GetHalfSrcA(context);
Operand[] srcB = GetHalfSrcB(context); Operand[] srcB = GetHalfSrcB(context);