diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-06-20 15:48:12 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-20 20:48:12 +0200 |
| commit | 65fee49e8a6fd6dcc058e3cfd52b2c26f038eced (patch) | |
| tree | b250d31ee520e13dee9d9e1514a0f51c50147021 /Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs | |
| parent | afd3153ca44225c1258f7d87cf5c098542229c74 (diff) | |
Fix separate bindless sampler at offset 0 (#2360)
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs index 1989131e..d96d2b2a 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs @@ -473,7 +473,7 @@ namespace Ryujinx.Graphics.Gpu.Image ? bufferManager.GetComputeUniformBufferAddress(samplerBufferIndex) : bufferManager.GetGraphicsUniformBufferAddress(stageIndex, samplerBufferIndex); - handle |= _context.PhysicalMemory.Read<int>(samplerBufferAddress + (ulong)((uint)wordOffset >> HandleHigh) * 4); + handle |= _context.PhysicalMemory.Read<int>(samplerBufferAddress + (ulong)((wordOffset >> HandleHigh) - 1) * 4); } return handle; |
