diff options
Diffstat (limited to 'Ryujinx.Graphics.Shader/Instructions')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs index 664c798b..1fddcc8c 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs @@ -138,11 +138,11 @@ namespace Ryujinx.Graphics.Shader.Instructions int count = op.Size == IntegerSize.B64 ? 2 : 1; - Operand wordOffset = context.ShiftRightU32(GetSrcA(context), Const(2)); + Operand addr = context.IAdd(GetSrcA(context), Const(op.Offset)); - wordOffset = context.IAdd(wordOffset, Const(op.Offset)); + Operand wordOffset = context.ShiftRightU32(addr, Const(2)); - Operand bitOffset = GetBitOffset(context, GetSrcA(context)); + Operand bitOffset = GetBitOffset(context, addr); for (int index = 0; index < count; index++) { |
