aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Vulkan/VulkanRenderer.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/VulkanRenderer.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/VulkanRenderer.cs')
-rw-r--r--Ryujinx.Graphics.Vulkan/VulkanRenderer.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs b/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs
index 5370335d..45e614e2 100644
--- a/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs
+++ b/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs
@@ -190,6 +190,13 @@ namespace Ryujinx.Graphics.Vulkan
Api.GetPhysicalDeviceFeatures2(_physicalDevice, &features2);
+ ref var properties = ref properties2.Properties;
+
+ SampleCountFlags supportedSampleCounts =
+ properties.Limits.FramebufferColorSampleCounts &
+ properties.Limits.FramebufferDepthSampleCounts &
+ properties.Limits.FramebufferStencilSampleCounts;
+
Capabilities = new HardwareCapabilities(
supportedExtensions.Contains("VK_EXT_index_type_uint8"),
supportedExtensions.Contains("VK_EXT_custom_border_color"),
@@ -208,9 +215,8 @@ namespace Ryujinx.Graphics.Vulkan
supportedFeatures.GeometryShader,
propertiesSubgroupSizeControl.MinSubgroupSize,
propertiesSubgroupSizeControl.MaxSubgroupSize,
- propertiesSubgroupSizeControl.RequiredSubgroupSizeStages);
-
- ref var properties = ref properties2.Properties;
+ propertiesSubgroupSizeControl.RequiredSubgroupSizeStages,
+ supportedSampleCounts);
MemoryAllocator = new MemoryAllocator(Api, _device, properties.Limits.MaxMemoryAllocationCount);