diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-02-10 21:10:05 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-11 01:10:05 +0100 |
| commit | 7e4d986a731e9cba05f24b2efd14e18ebc39e75d (patch) | |
| tree | 600a7f06c3c0e31d18c80f338e9e4604027fea04 /Ryujinx.Graphics.Shader/Translation/Lowering.cs | |
| parent | 2e6080ccbb1598fc13d0f68b3d05dd4f416bb0b0 (diff) | |
Support compute uniform buffers emulated with global memory (#924)
Diffstat (limited to 'Ryujinx.Graphics.Shader/Translation/Lowering.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Translation/Lowering.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Shader/Translation/Lowering.cs b/Ryujinx.Graphics.Shader/Translation/Lowering.cs index 1ee21e0a..99aea26e 100644 --- a/Ryujinx.Graphics.Shader/Translation/Lowering.cs +++ b/Ryujinx.Graphics.Shader/Translation/Lowering.cs @@ -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)); |
