Intel Vuikan (anv) crash in copy_non_dynamic_state() when using validation layer
Our program is crashing in copy_non_dynamic_state() at line 1895 when trying to dereference the pCreateInfo->pDepthStencilState pointer, which is NULL. This only happens when the validation layer is in use.
My call to vkCreateGraphicsPipelines() passes a non-null VkGraphicsPipelineCreateInfo::pDepthStencilState pointer, but the validation layer creates a new VkGraphicsPipelineCreateInfo object with a null pDepthStencilState pointer. I think it's doing that because depth/stencil testing is disabled, but I haven't dug deeply into it. I think the copy_non_dynamic_state() function needs to do some null pointer checking.
I'm using top of tree Mesa as of August 7.