anv/pass: Store subpass attachment reference list

We'll loop through this array when performing automatic layout
transitions.

v2: Adjust formatting of an assignment (Jason Ekstrand)

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Nanley Chery
2017-02-25 15:57:32 -08:00
parent 8f6a17c8e7
commit c0223d052b
2 changed files with 13 additions and 2 deletions

View File

@@ -1921,6 +1921,13 @@ struct anv_framebuffer {
};
struct anv_subpass {
uint32_t attachment_count;
/**
* A pointer to all attachment references used in this subpass.
* Only valid if ::attachment_count > 0.
*/
VkAttachmentReference * attachments;
uint32_t input_count;
VkAttachmentReference * input_attachments;
uint32_t color_count;