diff options
| author | riperiperi <rhy3756547@hotmail.com> | 2020-02-03 19:11:22 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-03 20:11:22 +0100 |
| commit | a0e6647860b689cd2c3d865e6b235b12ec96b89a (patch) | |
| tree | f9971370f18c50c4163c8a0c0a0224a9ce0f427c /Ryujinx.Graphics.Gpu/Memory/MemoryAccessor.cs | |
| parent | 796e5d14b4fadc15439d273f8ff8f9e9afc4033a (diff) | |
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
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Memory/MemoryAccessor.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Memory/MemoryAccessor.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Memory/MemoryAccessor.cs b/Ryujinx.Graphics.Gpu/Memory/MemoryAccessor.cs index 17c00062..fbe2cbc4 100644 --- a/Ryujinx.Graphics.Gpu/Memory/MemoryAccessor.cs +++ b/Ryujinx.Graphics.Gpu/Memory/MemoryAccessor.cs @@ -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); } |
