anv/pass: Store usage in each subpass attachment
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 13 Jan 2018 18:45:55 +0000 (10:45 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 20 Feb 2018 21:49:25 +0000 (13:49 -0800)
commita4136b8c1a4533925af616d4920054c9734a265b
treee92674666fa0ae30f59060733e545a8e30e8fa44
parentbd356e1bcf5f481775ef26b0f8ad29a48cf6f685
anv/pass: Store usage in each subpass attachment

This requires us to ditch the VkAttachmentReference struct in favor of
an anv-specific struct.  However, we can now easily identify from just
the subpass attachment what kind of an attachment it is.  This will make
iteration over anv_subpass::attachments a little easier in some case.

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/vulkan/anv_pass.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c