v3dv: improve asserts for VkPipelineColorBlendStateCreateInfo handling
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 31 Mar 2020 10:56:16 +0000 (12:56 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:29 +0000 (21:21 +0000)
commit152a64185b2a3e9b92478e22a164851e661c1c08
treefb16b698f2c12d8de4fe6eb58a3f862d9a06aa24
parentc6dca4c5290db8391b68daabffd37ea35b82f7b5
v3dv: improve asserts for VkPipelineColorBlendStateCreateInfo handling

According to the Vulkan 1.0 spec:

  "attachmentCount is the number of VkPipelineColorBlendAttachmentState
   elements in pAttachments. This value must equal the colorAttachmentCount
   for the subpass in which this pipeline is used."

so let's assert exactly that.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_pipeline.c