mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-01-08 17:48:35 +00:00
Fix incorrect saturation on HADD2 and HMUL2 shader instructions
This commit is contained in:
parent
873bb4c15a
commit
717ace6f6e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user