Эх сурвалжийг харах

Fix incorrect saturation on HADD2 and HMUL2 shader instructions

gdk 6 жил өмнө
parent
commit
717ace6f6e

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