mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-09-10 13:43:17 +02:00
Fix separate bindless sampler at offset 0 (#2360)
This commit is contained in:
parent
afd3153ca4
commit
65fee49e8a
@ -473,7 +473,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||||||
? bufferManager.GetComputeUniformBufferAddress(samplerBufferIndex)
|
? bufferManager.GetComputeUniformBufferAddress(samplerBufferIndex)
|
||||||
: bufferManager.GetGraphicsUniformBufferAddress(stageIndex, 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;
|
return handle;
|
||||||
|
@ -58,7 +58,7 @@ namespace Ryujinx.Graphics.Shader.Translation.Optimizations
|
|||||||
SetHandle(
|
SetHandle(
|
||||||
config,
|
config,
|
||||||
texOp,
|
texOp,
|
||||||
src0.GetCbufOffset() | (src1.GetCbufOffset() << 16),
|
src0.GetCbufOffset() | ((src1.GetCbufOffset() + 1) << 16),
|
||||||
src0.GetCbufSlot() | ((src1.GetCbufSlot() + 1) << 16));
|
src0.GetCbufSlot() | ((src1.GetCbufSlot() + 1) << 16));
|
||||||
}
|
}
|
||||||
else if (texOp.Inst == Instruction.ImageLoad || texOp.Inst == Instruction.ImageStore)
|
else if (texOp.Inst == Instruction.ImageLoad || texOp.Inst == Instruction.ImageStore)
|
||||||
|
Loading…
Reference in New Issue
Block a user