Fix a few things, 64 byte block fast copy.

This commit is contained in:
riperiperi
2020-05-24 16:57:29 +01:00
parent 8a7e25de71
commit 36211f2caa
4 changed files with 153 additions and 173 deletions

View File

@ -84,24 +84,11 @@ namespace Ryujinx.Graphics.Texture
}
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public int GetOffsetWithLineOffset(int x)
{
if (_isLinear)
{
return x + _yPart;
}
else
{
return _layoutConverter.GetOffsetWithLineOffset(x);
}
}
public (int offset, int size) GetRectangleRange(int x, int y, int width, int height)
{
if (_isLinear)
{
return (y * _stride + x, height * _stride);
return (y * _stride + x * _bytesPerPixel, height * _stride);
}
else
{