diff options
author | Samuel Pitoiset <[email protected]> | 2019-01-29 22:18:58 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-02-04 13:19:14 +0100 |
commit | 6430616e77100036ae201c86f4db83a73298e80a (patch) | |
tree | 7aa8276cc62b24f399c7f0f7a22c602650ca4148 /src/amd/vulkan/radv_pass.c | |
parent | 1e810f1c53fa25f764e3f9aeaa34a931a527f8d1 (diff) |
radv: track if subpasses have color attachments
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_pass.c')
-rw-r--r-- | src/amd/vulkan/radv_pass.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_pass.c b/src/amd/vulkan/radv_pass.c index b5b06b75b92..4d9fb0bf7df 100644 --- a/src/amd/vulkan/radv_pass.c +++ b/src/amd/vulkan/radv_pass.c @@ -81,12 +81,15 @@ radv_render_pass_compile(struct radv_render_pass *pass) pass_att->last_subpass_idx = i; } + subpass->has_color_att = false; for (uint32_t j = 0; j < subpass->color_count; j++) { struct radv_subpass_attachment *subpass_att = &subpass->color_attachments[j]; if (subpass_att->attachment == VK_ATTACHMENT_UNUSED) continue; + subpass->has_color_att = true; + struct radv_render_pass_attachment *pass_att = &pass->attachments[subpass_att->attachment]; |