From f659dcb9d85da034a8863375420cf8f135bd9ec2 Mon Sep 17 00:00:00 2001 From: Mary Date: Sun, 26 Mar 2023 19:01:30 +0200 Subject: [PATCH] vulkan: fix broken "VK_EXT_subgroup_size_control" support check (#4607) Not sure since when it was broken... --- Ryujinx.Graphics.Vulkan/VulkanRenderer.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs b/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs index 7e7d303611..cbee37470a 100644 --- a/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs +++ b/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs @@ -168,7 +168,9 @@ namespace Ryujinx.Graphics.Vulkan SType = StructureType.PhysicalDeviceSubgroupSizeControlPropertiesExt }; - if (Capabilities.SupportsSubgroupSizeControl) + bool supportsSubgroupSizeControl = supportedExtensions.Contains("VK_EXT_subgroup_size_control"); + + if (supportsSubgroupSizeControl) { properties2.PNext = &propertiesSubgroupSizeControl; } @@ -292,7 +294,7 @@ namespace Ryujinx.Graphics.Vulkan supportedExtensions.Contains(KhrDrawIndirectCount.ExtensionName), supportedExtensions.Contains("VK_EXT_fragment_shader_interlock"), supportedExtensions.Contains("VK_NV_geometry_shader_passthrough"), - supportedExtensions.Contains("VK_EXT_subgroup_size_control"), + supportsSubgroupSizeControl, featuresShaderInt8.ShaderInt8, supportedExtensions.Contains("VK_EXT_shader_stencil_export"), supportedExtensions.Contains(ExtConditionalRendering.ExtensionName),