mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-26 02:23:05 +00:00
Resolve validation error
This commit is contained in:
parent
6e132e9fd7
commit
72e57e4c6e
2 changed files with 8 additions and 5 deletions
|
@ -1704,6 +1704,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
{
|
||||
if (Gd.Capabilities.SupportsDynamicAttachmentFeedbackLoop)
|
||||
{
|
||||
_newState.FeedbackLoopDynamicState = true;
|
||||
DynamicState.SetFeedbackLoop(aspects);
|
||||
}
|
||||
else if (Gd.Capabilities.SupportsAttachmentFeedbackLoop)
|
||||
|
|
|
@ -246,6 +246,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
}
|
||||
|
||||
public bool HasTessellationControlShader;
|
||||
public bool FeedbackLoopDynamicState;
|
||||
public NativeArray<PipelineShaderStageCreateInfo> Stages;
|
||||
public PipelineLayout PipelineLayout;
|
||||
public SpecData SpecializationData;
|
||||
|
@ -659,7 +660,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
PipelineCreateFlags pipelineCreateFlags = 0;
|
||||
|
||||
if (gd.Capabilities.SupportsAttachmentFeedbackLoop)
|
||||
if (gd.Capabilities.SupportsAttachmentFeedbackLoop && !_supportsFeedBackLoopDynamicState)
|
||||
{
|
||||
FeedbackLoopAspects aspects = FeedbackLoopAspects;
|
||||
|
||||
|
@ -672,11 +673,12 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
{
|
||||
pipelineCreateFlags |= PipelineCreateFlags.CreateDepthStencilAttachmentFeedbackLoopBitExt;
|
||||
}
|
||||
}
|
||||
|
||||
if (_supportsFeedBackLoopDynamicState && pipelineCreateFlags != 0)
|
||||
{
|
||||
dynamicStates[dynamicStatesCount++] = DynamicState.AttachmentFeedbackLoopEnableExt;
|
||||
}
|
||||
if (_supportsFeedBackLoopDynamicState && FeedbackLoopDynamicState)
|
||||
{
|
||||
dynamicStates[dynamicStatesCount++] = DynamicState.AttachmentFeedbackLoopEnableExt;
|
||||
FeedbackLoopDynamicState = false;
|
||||
}
|
||||
|
||||
var pipelineDynamicStateCreateInfo = new PipelineDynamicStateCreateInfo
|
||||
|
|
Loading…
Reference in a new issue