Skip to content

Commit

Permalink
mantle: fix rasterizationSamples validation error
Browse files Browse the repository at this point in the history
VUID_Undefined(ERROR / SPEC): msgNum: 2044605652 - Validation Error: [ VUID_Undefined ] Object 0: handle = 0x7fb618413830, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x79de34d4 | vkCreateGraphicsPipelines: parameter pCreateInfos[0].pMultisampleState->rasterizationSamples must be greater than 0.
    Objects: 1
        [0] 0x7fb618413830, type: 3, name: NULL
VUID-VkPipelineMultisampleStateCreateInfo-rasterizationSamples-parameter(ERROR / SPEC): msgNum: -158280821 - Validation Error: [ VUID-VkPipelineMultisampleStateCreateInfo-rasterizationSamples-parameter ] Object 0: handle = 0x7fb618413830, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xf690d38b | vkCreateGraphicsPipelines: value of pCreateInfos[0].pMultisampleState->rasterizationSamples must not be 0. The Vulkan spec states: rasterizationSamples must be a valid VkSampleCountFlagBits value (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkPipelineMultisampleStateCreateInfo-rasterizationSamples-parameter)
    Objects: 1
        [0] 0x7fb618413830, type: 3, name: NULL
VUID-VkGraphicsPipelineCreateInfo-rasterizerDiscardEnable-00751(ERROR / SPEC): msgNum: 433274771 - Validation Error: [ VUID-VkGraphicsPipelineCreateInfo-rasterizerDiscardEnable-00751 ] Object 0: handle = 0x7fb618413830, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x19d33f93 | vkCreateGraphicsPipelines(): pCreateInfos[0] is being created without multisample state (VkGraphicsPipelineCreateInfo::pMultisampleState == null). The Vulkan spec states: If the pipeline is being created with fragment output interface state, pMultisampleState must be a valid pointer to a valid VkPipelineMultisampleStateCreateInfo structure (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkGraphicsPipelineCreateInfo-rasterizerDiscardEnable-00751)
    Objects: 1
        [0] 0x7fb618413830, type: 3, name: NULL
  • Loading branch information
libcg committed Jul 3, 2023
1 parent 31d43b9 commit 6b50540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantle/mantle_shader_pipeline.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ VkPipeline grPipelineGetVkPipeline(
.sType = VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO,
.pNext = NULL,
.flags = 0,
.rasterizationSamples = 0, // Dynamic state
.rasterizationSamples = 1, // Dynamic state
.sampleShadingEnable = VK_FALSE,
.minSampleShading = 0.f,
.pSampleMask = NULL, // Dynamic state
Expand Down

0 comments on commit 6b50540

Please sign in to comment.