aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Image/TextureManager.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-07-13 08:41:30 -0300
committerGitHub <noreply@github.com>2020-07-13 21:41:30 +1000
commit2900dda633f4541ac08b452d89514c145836374a (patch)
tree90f92e167d21d04cbbcfbd33385147a02f73f60a /Ryujinx.Graphics.Gpu/Image/TextureManager.cs
parenta804db6eed016a8a1f152c2837fc7b65e50f02df (diff)
Fix depth stencil formats copy by matching equivalent color formats (#1198)
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TextureManager.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Image/TextureManager.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs
index 69bee541..c69f69c6 100644
--- a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs
+++ b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs
@@ -189,7 +189,7 @@ namespace Ryujinx.Graphics.Gpu.Image
/// This will update scale to match the configured scale, scale textures that are eligible but not scaled,
/// and propagate blacklisted status from one texture to the ones bound with it.
/// </summary>
- /// <param name="singleUse">If this is not -1, it indicates that only the given indexed target will be used.</param>
+ /// <param name="singleUse">If this is not -1, it indicates that only the given indexed target will be used.</param>
public void UpdateRenderTargetScale(int singleUse)
{
// Make sure all scales for render targets are at the highest they should be. Blacklisted targets should propagate their scale to the other targets.
@@ -454,7 +454,7 @@ namespace Ryujinx.Graphics.Gpu.Image
Target.Texture2D,
formatInfo);
- TextureSearchFlags flags = TextureSearchFlags.IgnoreMs;
+ TextureSearchFlags flags = TextureSearchFlags.ForCopy;
if (preferScaling)
{
@@ -608,7 +608,7 @@ namespace Ryujinx.Graphics.Gpu.Image
/// <returns>The texture</returns>
public Texture FindOrCreateTexture(TextureInfo info, TextureSearchFlags flags = TextureSearchFlags.None)
{
- bool isSamplerTexture = (flags & TextureSearchFlags.Sampler) != 0;
+ bool isSamplerTexture = (flags & TextureSearchFlags.ForSampler) != 0;
bool isScalable = IsUpscaleCompatible(info);
@@ -737,7 +737,7 @@ namespace Ryujinx.Graphics.Gpu.Image
if (texture.ScaleFactor != overlap.ScaleFactor)
{
- // A bit tricky, our new texture may need to contain an existing texture that is upscaled, but isn't itself.
+ // A bit tricky, our new texture may need to contain an existing texture that is upscaled, but isn't itself.
// In that case, we prefer the higher scale only if our format is render-target-like, otherwise we scale the view down before copy.
texture.PropagateScale(overlap);