diff options
author | Jason Ekstrand <[email protected]> | 2018-01-13 10:45:55 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-02-20 13:49:25 -0800 |
commit | a4136b8c1a4533925af616d4920054c9734a265b (patch) | |
tree | e92674666fa0ae30f59060733e545a8e30e8fa44 /src/intel/vulkan/genX_cmd_buffer.c | |
parent | bd356e1bcf5f481775ef26b0f8ad29a48cf6f685 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_cmd_buffer.c')
-rw-r--r-- | src/intel/vulkan/genX_cmd_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index db93210d2aa..5f770dd4f3d 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -3339,7 +3339,7 @@ cmd_buffer_subpass_transition_layouts(struct anv_cmd_buffer * const cmd_buffer, assert(subpass->attachments); /* Iterate over the array of attachment references. */ - for (const VkAttachmentReference *att_ref = subpass->attachments; + for (const struct anv_subpass_attachment *att_ref = subpass->attachments; att_ref < subpass->attachments + subpass->attachment_count; att_ref++) { /* If the attachment is unused, we can't perform a layout transition. */ |