anv: Handle VK_ATTACHMENT_UNUSED in colorAttachment
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Thu, 31 Jan 2019 13:49:35 +0000 (15:49 +0200)
committerDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Mon, 4 Feb 2019 12:49:50 +0000 (14:49 +0200)
commitd76e7779884775bcebf235adb0e8367816b9b95d
treec85fe94a7358b85dc5173a1e4ed80dc3b2c96f41
parent0d0affad3c37c8d2d37e5abc6fa4a9a22f7e3d86
anv: Handle VK_ATTACHMENT_UNUSED in colorAttachment

From the Vulkan 1.0.98 spec for vkCmdClearAttachments:

"If the aspectMask member of any element of pAttachments contains
VK_IMAGE_ASPECT_COLOR_BIT, then the colorAttachment member of that
element must either refer to a color attachment which is VK_ATTACHMENT_UNUSED,
or must be a valid color attachment."

Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_blorp.c