Combine compatibility check.

This commit is contained in:
sunshineinabox 2024-05-19 10:43:07 -07:00
parent 8bb369f37d
commit 6c6cd8927a

View file

@ -438,11 +438,6 @@ namespace Ryujinx.Graphics.Vulkan
Topology = Topology,
};
if (!supportsExtDynamicState)
{
inputAssemblyState.PrimitiveRestartEnable = PrimitiveRestartEnable;
}
var tessellationState = new PipelineTessellationStateCreateInfo
{
SType = StructureType.PipelineTessellationStateCreateInfo,
@ -462,11 +457,6 @@ namespace Ryujinx.Graphics.Vulkan
rasterizationState.LineWidth = 1.0f;
}
if (!supportsExtDynamicState)
{
rasterizationState.CullMode = CullMode;
rasterizationState.FrontFace = FrontFace;
}
if (!supportsExtDynamicState2)
{
@ -479,12 +469,6 @@ namespace Ryujinx.Graphics.Vulkan
SType = StructureType.PipelineViewportStateCreateInfo,
};
if (!supportsExtDynamicState)
{
viewportState.ViewportCount = ViewportsCount;
viewportState.ScissorCount = ScissorsCount;
}
if (gd.Capabilities.SupportsDepthClipControl && !gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne)
{
var viewportDepthClipControlState = new PipelineViewportDepthClipControlCreateInfoEXT
@ -516,6 +500,14 @@ namespace Ryujinx.Graphics.Vulkan
if (!supportsExtDynamicState)
{
inputAssemblyState.PrimitiveRestartEnable = PrimitiveRestartEnable;
rasterizationState.CullMode = CullMode;
rasterizationState.FrontFace = FrontFace;
viewportState.ViewportCount = ViewportsCount;
viewportState.ScissorCount = ScissorsCount;
var stencilFront = new StencilOpState(
StencilFrontFailOp,
StencilFrontPassOp,