From 8bb369f37d7166be12b0e3157767d1d85aa2df9e Mon Sep 17 00:00:00 2001 From: sunshineinabox Date: Sun, 19 May 2024 10:31:53 -0700 Subject: [PATCH] Missed enabling Dynamic State --- src/Ryujinx.Graphics.Vulkan/PipelineBase.cs | 3 +-- src/Ryujinx.Graphics.Vulkan/PipelineState.cs | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs b/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs index 696b5c1cb6..f78184c3bc 100644 --- a/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs +++ b/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs @@ -899,8 +899,7 @@ namespace Ryujinx.Graphics.Vulkan public void SetDepthMode(DepthMode mode) { bool oldMode; - bool supportsDepthClipandDynamicState = Gd.Capabilities.SupportsDepthClipControl && - Gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne; + bool supportsDepthClipandDynamicState = Gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne; if (supportsDepthClipandDynamicState) { oldMode = DynamicState.DepthMode; diff --git a/src/Ryujinx.Graphics.Vulkan/PipelineState.cs b/src/Ryujinx.Graphics.Vulkan/PipelineState.cs index 7ae909e16e..4792799162 100644 --- a/src/Ryujinx.Graphics.Vulkan/PipelineState.cs +++ b/src/Ryujinx.Graphics.Vulkan/PipelineState.cs @@ -637,6 +637,10 @@ namespace Ryujinx.Graphics.Vulkan { additionalDynamicStatesCount++; } + if (gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne) + { + additionalDynamicStatesCount++; + } } int dynamicStatesCount = baseDynamicStatesCount + additionalDynamicStatesCount; @@ -710,6 +714,10 @@ namespace Ryujinx.Graphics.Vulkan { dynamicStates[currentIndex++] = DynamicState.AlphaToOneEnableExt; } + if (gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne) + { + dynamicStates[currentIndex++] = DynamicState.DepthClipNegativeOneToOneExt; + } } var pipelineDynamicStateCreateInfo = new PipelineDynamicStateCreateInfo