mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-26 13:56:41 +01:00
Fix separate bindless sampler at offset 0 (#2360)
This commit is contained in:
parent
afd3153ca4
commit
65fee49e8a
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue