diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-02-08 04:48:09 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 08:48:09 +0100 |
commit | 96cf242bcf168b9f9e6a1e27200529466217f396 (patch) | |
tree | 01cb6f4aff69aa4019ff613af83e88e8cd124813 /Ryujinx.Graphics.Gpu/Image/TextureManager.cs | |
parent | 59755818ef79f494d87c4e9d2b8372b54b38cb9d (diff) |
Handle mismatching texture size with copy dependencies (#4364)1.1.605
* Handle mismatching texture size with copy dependencies
* Create copy and render textures with the minimum possible size
* Only align width for comparisons, assume that height is always exact
* Fix IsExactMatch size check
* Allow sampler and copy textures to match textures with larger width
* Delete texture ChangeSize related code
* Move AdjustSize to TextureInfo and give it a better name, adjust usages
* Fix GetMinimumWidthInGob when minimumWidth > width
* Only update render targets that are actually cleared for clear
Avoids creating textures with incorrect sizes
* Delete UpdateRenderTargetState method that is not needed anymore
Clears now only ever sets the render targets that will be cleared rather than all of them
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TextureManager.cs')
-rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TextureManager.cs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs index 083de64c..266f6285 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs @@ -441,22 +441,6 @@ namespace Ryujinx.Graphics.Gpu.Image /// Update host framebuffer attachments based on currently bound render target buffers. /// </summary> /// <remarks> - /// All attachments other than <paramref name="index"/> will be unbound. - /// </remarks> - /// <param name="index">Index of the render target color to be updated</param> - public void UpdateRenderTarget(int index) - { - new Span<ITexture>(_rtHostColors).Fill(null); - _rtHostColors[index] = _rtColors[index]?.HostTexture; - _rtHostDs = null; - - _context.Renderer.Pipeline.SetRenderTargets(_rtHostColors, null); - } - - /// <summary> - /// Update host framebuffer attachments based on currently bound render target buffers. - /// </summary> - /// <remarks> /// All color attachments will be unbound. /// </remarks> public void UpdateRenderTargetDepthStencil() |