Sfoglia il codice sorgente

Fix incorrect saturation on HADD2 and HMUL2 shader instructions

gdk 6 anni fa
parent
commit
717ace6f6e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
             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);