From e9c15d32cbdd5d59373ede7d5dd15f4150ef3c4c Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 21 May 2021 20:26:49 -0300 Subject: Use a different method for out of bounds blit (#2302) * Use a different method for out of bounds blit * This is not needed --- Ryujinx.Graphics.Gpu/Image/TextureManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Ryujinx.Graphics.Gpu/Image') diff --git a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs index e08e55ee..94939ae4 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs @@ -476,11 +476,12 @@ namespace Ryujinx.Graphics.Gpu.Image /// Tries to find an existing texture, or create a new one if not found. /// /// Copy texture to find or create + /// Offset to be added to the physical texture address /// Format information of the copy texture /// Indicates if the texture should be scaled from the start /// A hint indicating the minimum used size for the texture /// The texture - public Texture FindOrCreateTexture(CopyTexture copyTexture, FormatInfo formatInfo, bool preferScaling = true, Size? sizeHint = null) + public Texture FindOrCreateTexture(CopyTexture copyTexture, ulong offset, FormatInfo formatInfo, bool preferScaling = true, Size? sizeHint = null) { int gobBlocksInY = copyTexture.MemoryLayout.UnpackGobBlocksInY(); int gobBlocksInZ = copyTexture.MemoryLayout.UnpackGobBlocksInZ(); @@ -497,7 +498,7 @@ namespace Ryujinx.Graphics.Gpu.Image } TextureInfo info = new TextureInfo( - copyTexture.Address.Pack(), + copyTexture.Address.Pack() + offset, width, copyTexture.Height, copyTexture.Depth, -- cgit v1.2.3