VulkanTools
VulkanTools copied to clipboard
api_dump layer crash dumping VkPositiveLayerTest.CreateGraphicsPipelineWithIgnoredPointers
There are some considerations as to which pointers in vkGraphicsPipelineCreateInfo are valid under different circumstances that aren't built into the xml. This is a test of some of those corner cases.
I was able to reproduce this issue, api_dump crashes when trying to print the VkPipelineTessellationStateCreateInfo struct but because the test adds in a very bad pointer, it crashes.
The solution is to special case VkGraphicsPipelineCreateInfo with the necessary checks. I'm not a fan of special casing what should be autogenerated, but alas, if the relevant info isn't expressed in the XML, then there really isn't anything to be done.