Fix separate bindless sampler at offset 0 (#2360)

This commit is contained in:
gdkchan 2021-06-20 15:48:12 -03:00 committed by GitHub
parent 168e7b3ee3
commit 0cda64a0b8
2 changed files with 2 additions and 2 deletions

View file

@ -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;