diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-12-26 13:05:26 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-26 13:05:26 -0300 |
| commit | a87f7f202973d2ab0db088f97b3538ae724bbe69 (patch) | |
| tree | e8030e9b16694ccd44d9ada61ec4520a79fbb76f /Ryujinx.Graphics.Texture | |
| parent | 7c7bf30ad38d0d80ed9c125b7c894eba2293df66 (diff) | |
Fix DMA copy fast path line size when xCount < stride (#2942)
Diffstat (limited to 'Ryujinx.Graphics.Texture')
| -rw-r--r-- | Ryujinx.Graphics.Texture/LayoutConverter.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Texture/LayoutConverter.cs b/Ryujinx.Graphics.Texture/LayoutConverter.cs index 970d08cb..1039ea26 100644 --- a/Ryujinx.Graphics.Texture/LayoutConverter.cs +++ b/Ryujinx.Graphics.Texture/LayoutConverter.cs @@ -248,6 +248,7 @@ namespace Ryujinx.Graphics.Texture int height, int blockWidth, int blockHeight, + int lineSize, int stride, int bytesPerPixel, ReadOnlySpan<byte> data) @@ -256,7 +257,7 @@ namespace Ryujinx.Graphics.Texture int h = BitUtils.DivRoundUp(height, blockHeight); int outStride = BitUtils.AlignUp(w * bytesPerPixel, HostStrideAlignment); - int lineSize = Math.Min(stride, outStride); + lineSize = Math.Min(lineSize, outStride); Span<byte> output = new byte[h * outStride]; |
