Missed enabling Dynamic State

This commit is contained in:
sunshineinabox 2024-05-19 10:31:53 -07:00
parent b082bb2a83
commit 73ead467d6
2 changed files with 9 additions and 2 deletions

View file

@ -901,8 +901,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;

View file

@ -652,6 +652,10 @@ namespace Ryujinx.Graphics.Vulkan
{
additionalDynamicStatesCount++;
}
if (gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne)
{
additionalDynamicStatesCount++;
}
}
int dynamicStatesCount = baseDynamicStatesCount + additionalDynamicStatesCount;
@ -725,6 +729,10 @@ namespace Ryujinx.Graphics.Vulkan
{
dynamicStates[currentIndex++] = DynamicState.AlphaToOneEnableExt;
}
if (gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne)
{
dynamicStates[currentIndex++] = DynamicState.DepthClipNegativeOneToOneExt;
}
}
var pipelineDynamicStateCreateInfo = new PipelineDynamicStateCreateInfo