Use proper alignment mask
This commit is contained in:
parent
950da02673
commit
16c9b9c9bd
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ namespace Ryujinx.Graphics.Shader.Translation
|
|||
|
||||
Operand alignMask = Const(-config.QueryInfo(QueryInfoName.StorageBufferOffsetAlignment));
|
||||
|
||||
Operand baseAddrTrunc = PrependOperation(Instruction.BitwiseAnd, sbBaseAddrLow, Const(-64));
|
||||
Operand baseAddrTrunc = PrependOperation(Instruction.BitwiseAnd, sbBaseAddrLow, alignMask);
|
||||
Operand byteOffset = PrependOperation(Instruction.Subtract, addrLow, baseAddrTrunc);
|
||||
Operand wordOffset = PrependOperation(Instruction.ShiftRightU32, byteOffset, Const(2));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue