OSDN Git Service

anv/blorp: Properly handle VK_ATTACHMENT_UNUSED
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 6 Apr 2017 21:15:55 +0000 (14:15 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 14 Apr 2017 21:20:42 +0000 (14:20 -0700)
commit220974b38dfcd557f4a6bc723e4b5d15add39f84
tree9014dab4e9da274facd0ef8d5f081c59e83c92e3
parent21d2ca72d88e00ddf37c7e1030472e184a038195
anv/blorp: Properly handle VK_ATTACHMENT_UNUSED

The Vulkan driver was originally written under the assumption that
VK_ATTACHMENT_UNUSED was basically just for depth-stencil attachments.
However, the way things fell together, VK_ATTACHMENT_UNUSED can be used
anywhere in the subpass description.  The blorp-based clear and resolve
code has a bunch of places where we walk lists of attachments and we
weren't handling VK_ATTACHMENT_UNUSED everywhere.  This commit should
fix all of them.

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Cc: <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_blorp.c