From 73aed239c356c4c573819eb6ee1e2d414d2d5579 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 4 Dec 2022 15:07:11 -0300 Subject: Implement non-MS to MS copies with draws (#3958) * Implement non-MS to MS copies with draws, simplify MS to non-MS copies and supports any host sample count * Remove unused program --- Ryujinx.Graphics.Vulkan/TextureCopy.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Ryujinx.Graphics.Vulkan/TextureCopy.cs') diff --git a/Ryujinx.Graphics.Vulkan/TextureCopy.cs b/Ryujinx.Graphics.Vulkan/TextureCopy.cs index 4403df15..c7ce2d99 100644 --- a/Ryujinx.Graphics.Vulkan/TextureCopy.cs +++ b/Ryujinx.Graphics.Vulkan/TextureCopy.cs @@ -389,7 +389,7 @@ namespace Ryujinx.Graphics.Vulkan null, 0, src.VkFormat, - TextureStorage.ConvertToSampleCountFlags((uint)src.Info.Samples), + TextureStorage.ConvertToSampleCountFlags(gd.Capabilities.SupportedSampleCounts, (uint)src.Info.Samples), AttachmentLoadOp.Load, AttachmentStoreOp.Store, AttachmentLoadOp.Load, @@ -402,7 +402,7 @@ namespace Ryujinx.Graphics.Vulkan null, 0, dst.VkFormat, - TextureStorage.ConvertToSampleCountFlags((uint)dst.Info.Samples), + TextureStorage.ConvertToSampleCountFlags(gd.Capabilities.SupportedSampleCounts, (uint)dst.Info.Samples), AttachmentLoadOp.Load, AttachmentStoreOp.Store, AttachmentLoadOp.Load, -- cgit v1.2.3