mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-06 18:28:29 +02:00
Compare shader code using a span instead of individual reads. (#917)
* Compare shader code using a span instead of individual reads. * Add comment for new parameter. * Remove unnecessary Math.Min
This commit is contained in:
@@ -41,7 +41,7 @@ namespace Ryujinx.Graphics.Gpu.Memory
|
||||
{
|
||||
ulong processVa = _context.MemoryManager.Translate(gpuVa);
|
||||
|
||||
ulong size = Math.Min(_context.MemoryManager.GetSubSize(gpuVa), maxSize);
|
||||
ulong size = _context.MemoryManager.GetSubSize(gpuVa, maxSize);
|
||||
|
||||
return _context.PhysicalMemory.GetSpan(processVa, size);
|
||||
}
|
||||
|
Reference in New Issue
Block a user