瀏覽代碼

Fix incorrect saturation on HADD2 and HMUL2 shader instructions

gdk 6 年之前
父節點
當前提交
717ace6f6e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Ryujinx.Graphics.Shader/Instructions/InstEmitFArith.cs

+ 1 - 1
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);