From 65fee49e8a6fd6dcc058e3cfd52b2c26f038eced Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 20 Jun 2021 15:48:12 -0300 Subject: Fix separate bindless sampler at offset 0 (#2360) --- Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Gpu/Image') 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(samplerBufferAddress + (ulong)((uint)wordOffset >> HandleHigh) * 4); + handle |= _context.PhysicalMemory.Read(samplerBufferAddress + (ulong)((wordOffset >> HandleHigh) - 1) * 4); } return handle; -- cgit v1.2.3