anv/blorp: Handle VK_ATTACHMENT_UNUSED in CmdClearAttachments
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 22 Oct 2016 06:19:44 +0000 (23:19 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 16 Nov 2016 18:32:20 +0000 (10:32 -0800)
commite50bf059b01499a54d2ff7bd4624e39e0fee9098
treee3b35a8901a647c80a85dc2f88b5b14a741626e5
parent633677194f1d33f0dfbdfdfb7ac5b4f1b4dffdcb
anv/blorp: Handle VK_ATTACHMENT_UNUSED in CmdClearAttachments

From the Vulkan 1.0.29 spec for vkCmdClearAttachments:

   "If the subpass’s depth/stencil attachment is VK_ATTACHMENT_UNUSED,
   then the clear has no effect."

and

   "If colorAttachment is VK_ATTACHMENT_UNUSED then the clear has no
   effect."

I have no idea why it's spec'd this way; it seems very anti-Vulkan to me,
but that's what it says and it's really not much work to support.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/vulkan/anv_blorp.c