anv/pipeline: Validate VkGraphicsPipelineCreateInfo
authorChad Versace <chad.versace@intel.com>
Sat, 17 Oct 2015 03:31:39 +0000 (20:31 -0700)
committerChad Versace <chad.versace@intel.com>
Tue, 20 Oct 2015 17:55:54 +0000 (10:55 -0700)
commitb51468b519f447c8e0afd492ce09d7c9485e222b
treed6c15022e264c13db40f0feff3d07753f45c864e
parent855180b3d91d1749ca5d6bbf90534ed4e3bf47d1
anv/pipeline: Validate VkGraphicsPipelineCreateInfo

The Vulkan spec (20 Oct 2015, git-aa308cb) states that some fields of
VkGraphicsPipelineCreateInfo are required under certain conditions.
Add a new function, anv_pipeline_validate_create_info() that asserts the
requirements hold.

The assertions helped me discover bugs in Crucible and anv_meta.c.
src/vulkan/anv_pipeline.c