diff options
| author | gdk <gab.dark.100@gmail.com> | 2019-11-23 23:24:03 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 16d88c21fc98cd7302811e142a39d590370e182e (patch) | |
| tree | e2c1a457666a11427ca3a26d701720bfe508e0e3 /Ryujinx.Graphics.Gpu/Image/TextureManager.cs | |
| parent | b2b2e046696e9c187cd9d7d4e3e92dc521082fe5 (diff) | |
Improved and simplified window texture presentation
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TextureManager.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TextureManager.cs | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs index 045c2ed9..413ba327 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs @@ -22,7 +22,7 @@ namespace Ryujinx.Graphics.Gpu.Image private ITexture[] _rtHostColors; private ITexture _rtHostDs; - private ConcurrentRangeList<Texture> _textures; + private RangeList<Texture> _textures; private AutoDeleteCache _cache; @@ -39,7 +39,7 @@ namespace Ryujinx.Graphics.Gpu.Image _rtHostColors = new ITexture[Constants.TotalRenderTargets]; - _textures = new ConcurrentRangeList<Texture>(); + _textures = new RangeList<Texture>(); _cache = new AutoDeleteCache(); } @@ -561,28 +561,6 @@ namespace Ryujinx.Graphics.Gpu.Image info.SwizzleA); } - public Texture Find2(ulong address) - { - Texture[] ts = _textures.FindOverlaps(address, 1); - - if (ts.Length == 2) - { - return ts[1]; - } - - if (ts.Length == 0) - { - ts = _textures.FindOverlaps(address - 1, 2); - } - - if (ts.Length == 0) - { - return null; - } - - return ts[0]; - } - public void Flush() { foreach (Texture texture in _cache) |
