mirror of
https://git.ryujinx.app/projects/Ryubing.git
synced 2026-10-23 15:32:25 -05:00
Fix separate bindless sampler at offset 0 (#2360)
This commit is contained in:
1 parent
afd3153ca4
commit
65fee49e8a
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace Ryujinx.Graphics.Shader.Translation.Optimizations
|
||||
SetHandle(
|
||||
config,
|
||||
texOp,
|
||||
src0.GetCbufOffset() | (src1.GetCbufOffset() << 16),
|
||||
src0.GetCbufOffset() | ((src1.GetCbufOffset() + 1) << 16),
|
||||
src0.GetCbufSlot() | ((src1.GetCbufSlot() + 1) << 16));
|
||||
}
|
||||
else if (texOp.Inst == Instruction.ImageLoad || texOp.Inst == Instruction.ImageStore)
|
||||
|
||||
Reference in new issue
Block a user