anv/genX: Solve the vkCreateGraphicsPipelines crash
authorXu,Randy <randy.xu@intel.com>
Sat, 18 Mar 2017 11:20:17 +0000 (19:20 +0800)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 20 Mar 2017 06:31:18 +0000 (08:31 +0200)
commit57595cb0739d50a3fbd0841d7475bd775f3e24f3
tree4b4fd3658e542faf4b7c515af6b354aaee3cc39e
parente70e7cc7ffcb40f2ac6844b19a2d9b1bb26693a7
anv/genX: Solve the vkCreateGraphicsPipelines crash

The crash is due to NULL pColorBlendState, which is legal if the
pipeline has rasterization disabled or if the subpass of the render pass
the pipeline is created against does not use any color attachments.

Test: Sample subpasses from LunarG can run without crash

Signed-off-by: Xu,Randy <randy.xu@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "17.0 13.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/genX_pipeline.c