Resolve the below validation errors.
VUID-VkPipelineDynamicStateCreateInfo-pDynamicStates-01442(ERROR / SPEC): msgNum: 1313692360 - Validation Error: [ VUID-VkPipelineDynamicStateCreateInfo-pDynamicStates-01442 ] | MessageID = 0x4e4d5ac8 | vkCreateGraphicsPipelines(): pCreateInfos[0].pDynamicState has VK_DYNAMIC_STATE_VIEWPORT at pDynamicStates[0] and pDynamicStates[28]. The Vulkan spec states: Each element of pDynamicStates must be unique (https://vulkan.lunarg.com/doc/view/1.3.283.0/windows/1.3-extensions/vkspec.html#VUID-VkPipelineDynamicStateCreateInfo-pDynamicStates-01442) Objects: 0 VUID-VkGraphicsPipelineCreateInfo-pDynamicStates-04132(ERROR / SPEC): msgNum: -206448348 - Validation Error: [ VUID-VkGraphicsPipelineCreateInfo-pDynamicStates-04132 ] | MessageID = 0xf3b1d924 | vkCreateGraphicsPipelines(): pCreateInfos[0].pDynamicState pDynamicStates[15] is VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT and pDynamicStates[28] is VK_DYNAMIC_STATE_VIEWPORT. The Vulkan spec states: If the pipeline requires pre-rasterization shader state, and VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT is included in the pDynamicStates array then VK_DYNAMIC_STATE_VIEWPORT must not be present (https://vulkan.lunarg.com/doc/view/1.3.283.0/windows/1.3-extensions/vkspec.html#VUID-VkGraphicsPipelineCreateInfo-pDynamicStates-04132) Objects: 0 VUID-VkGraphicsPipelineCreateInfo-pDynamicStates-04133(ERROR / SPEC): msgNum: -858144982 - Validation Error: [ VUID-VkGraphicsPipelineCreateInfo-pDynamicStates-04133 ] | MessageID = 0xccd9bf2a | vkCreateGraphicsPipelines(): pCreateInfos[0].pDynamicState pDynamicStates[16] is VK_DYNAMIC_STATE_SCISSOR_WITH_COUNT and pDynamicStates[1] is VK_DYNAMIC_STATE_SCISSOR. The Vulkan spec states: If the pipeline requires pre-rasterization shader state, and VK_DYNAMIC_STATE_SCISSOR_WITH_COUNT is included in the pDynamicStates array then VK_DYNAMIC_STATE_SCISSOR must not be present (https://vulkan.lunarg.com/doc/view/1.3.283.0/windows/1.3-extensions/vkspec.html#VUID-VkGraphicsPipelineCreateInfo-pDynamicStates-04133) Objects: 0
This commit is contained in:
parent
f30a8f1580
commit
76c9c2ac8c
1 changed files with 3 additions and 3 deletions
|
@ -595,7 +595,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
|
|
||||||
if (supportsExtDynamicState)
|
if (supportsExtDynamicState)
|
||||||
{
|
{
|
||||||
additionalDynamicStatesCount += isMoltenVk ? 10 : 11;
|
additionalDynamicStatesCount += isMoltenVk ? 7 : 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supportsExtDynamicState2)
|
if (supportsExtDynamicState2)
|
||||||
|
@ -661,14 +661,14 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
//Requires Metal 3.1 and new MoltenVK
|
//Requires Metal 3.1 and new MoltenVK
|
||||||
dynamicStates[currentIndex++] = DynamicState.VertexInputBindingStrideExt;
|
dynamicStates[currentIndex++] = DynamicState.VertexInputBindingStrideExt;
|
||||||
}
|
}
|
||||||
|
dynamicStates[0] = DynamicState.ViewportWithCountExt;
|
||||||
|
dynamicStates[1] = DynamicState.ScissorWithCountExt;
|
||||||
dynamicStates[currentIndex++] = DynamicState.CullModeExt;
|
dynamicStates[currentIndex++] = DynamicState.CullModeExt;
|
||||||
dynamicStates[currentIndex++] = DynamicState.FrontFaceExt;
|
dynamicStates[currentIndex++] = DynamicState.FrontFaceExt;
|
||||||
dynamicStates[currentIndex++] = DynamicState.DepthTestEnableExt;
|
dynamicStates[currentIndex++] = DynamicState.DepthTestEnableExt;
|
||||||
dynamicStates[currentIndex++] = DynamicState.DepthWriteEnableExt;
|
dynamicStates[currentIndex++] = DynamicState.DepthWriteEnableExt;
|
||||||
dynamicStates[currentIndex++] = DynamicState.DepthCompareOpExt;
|
dynamicStates[currentIndex++] = DynamicState.DepthCompareOpExt;
|
||||||
dynamicStates[currentIndex++] = DynamicState.StencilTestEnableExt;
|
dynamicStates[currentIndex++] = DynamicState.StencilTestEnableExt;
|
||||||
dynamicStates[currentIndex++] = DynamicState.ViewportWithCountExt;
|
|
||||||
dynamicStates[currentIndex++] = DynamicState.ScissorWithCountExt;
|
|
||||||
dynamicStates[currentIndex++] = DynamicState.StencilOpExt;
|
dynamicStates[currentIndex++] = DynamicState.StencilOpExt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue