diff options
| author | gdk <gab.dark.100@gmail.com> | 2019-10-15 00:11:52 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 717ace6f6ed65118148dc78976c6e818a095fa4d (patch) | |
| tree | 7e7db466b86b27d45c87287c95cb6d153411d347 | |
| parent | 873bb4c15ac2b949594eb6267420508dce6dc2fd (diff) | |
Fix incorrect saturation on HADD2 and HMUL2 shader instructions
| -rw-r--r-- | Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs index 2ecdee27..522875e5 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs @@ -210,7 +210,7 @@ namespace Ryujinx.Graphics.Shader.Instructions { 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[] srcB = GetHalfSrcB(context); |
