From 717ace6f6ed65118148dc78976c6e818a095fa4d Mon Sep 17 00:00:00 2001
From: gdk <gab.dark.100@gmail.com>
Date: Tue, 15 Oct 2019 00:11:52 -0300
Subject: [PATCH] Fix incorrect saturation on HADD2 and HMUL2 shader
 instructions

---
 Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs
index 2ecdee274..522875e54 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);