aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Vulkan/PipelineBase.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-12-04 15:07:11 -0300
committerGitHub <noreply@github.com>2022-12-04 15:07:11 -0300
commit73aed239c356c4c573819eb6ee1e2d414d2d5579 (patch)
treea62251a52f79673925161a9843339df81483fbfb /Ryujinx.Graphics.Vulkan/PipelineBase.cs
parent9ac66336a216644a1b671e7949702d2e749838d2 (diff)
Implement non-MS to MS copies with draws (#3958)1.1.420
* Implement non-MS to MS copies with draws, simplify MS to non-MS copies and supports any host sample count * Remove unused program
Diffstat (limited to 'Ryujinx.Graphics.Vulkan/PipelineBase.cs')
-rw-r--r--Ryujinx.Graphics.Vulkan/PipelineBase.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Vulkan/PipelineBase.cs b/Ryujinx.Graphics.Vulkan/PipelineBase.cs
index 8679bc84..dfcb32d4 100644
--- a/Ryujinx.Graphics.Vulkan/PipelineBase.cs
+++ b/Ryujinx.Graphics.Vulkan/PipelineBase.cs
@@ -1263,7 +1263,6 @@ namespace Ryujinx.Graphics.Vulkan
{
FramebufferParams = new FramebufferParams(Device, colors, depthStencil);
UpdatePipelineAttachmentFormats();
- _newState.SamplesCount = FramebufferParams.AttachmentSamples.Length != 0 ? FramebufferParams.AttachmentSamples[0] : 1;
}
protected void UpdatePipelineAttachmentFormats()
@@ -1279,6 +1278,7 @@ namespace Ryujinx.Graphics.Vulkan
_newState.ColorBlendAttachmentStateCount = (uint)(FramebufferParams.MaxColorAttachmentIndex + 1);
_newState.HasDepthStencil = FramebufferParams.HasDepthStencil;
+ _newState.SamplesCount = FramebufferParams.AttachmentSamples.Length != 0 ? FramebufferParams.AttachmentSamples[0] : 1;
}
protected unsafe void CreateRenderPass()
@@ -1307,7 +1307,7 @@ namespace Ryujinx.Graphics.Vulkan
attachmentDescs[i] = new AttachmentDescription(
0,
FramebufferParams.AttachmentFormats[i],
- TextureStorage.ConvertToSampleCountFlags(FramebufferParams.AttachmentSamples[i]),
+ TextureStorage.ConvertToSampleCountFlags(Gd.Capabilities.SupportedSampleCounts, FramebufferParams.AttachmentSamples[i]),
AttachmentLoadOp.Load,
AttachmentStoreOp.Store,
AttachmentLoadOp.Load,