Sign-extend shader memory instruction offsets (#934)
This commit is contained in:
parent
416ddd0f6e
commit
5a9dba0756
4 changed files with 6 additions and 6 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue