mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-30 14:37:11 +02:00
Support compute uniform buffers emulated with global memory (#924)
This commit is contained in:
parent
004aea2b81
commit
303724a4b1
5 changed files with 133 additions and 16 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
Add a link
Reference in a new issue