diff options
Diffstat (limited to 'src/intel/vulkan/anv_pass.c')
-rw-r--r-- | src/intel/vulkan/anv_pass.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/intel/vulkan/anv_pass.c b/src/intel/vulkan/anv_pass.c index ab0733fc103..a77e52b0c00 100644 --- a/src/intel/vulkan/anv_pass.c +++ b/src/intel/vulkan/anv_pass.c @@ -73,10 +73,6 @@ VkResult anv_CreateRenderPass( } anv_multialloc_add(&ma, &subpass_attachments, subpass_attachment_count); - enum anv_subpass_usage *subpass_usages; - anv_multialloc_add(&ma, &subpass_usages, - pCreateInfo->subpassCount * pCreateInfo->attachmentCount); - if (!anv_multialloc_alloc2(&ma, &device->alloc, pAllocator, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT)) return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); @@ -102,8 +98,6 @@ VkResult anv_CreateRenderPass( att->initial_layout = pCreateInfo->pAttachments[i].initialLayout; att->final_layout = pCreateInfo->pAttachments[i].finalLayout; att->first_subpass_layout = VK_IMAGE_LAYOUT_UNDEFINED; - att->subpass_usage = subpass_usages; - subpass_usages += pass->subpass_count; } bool has_color = false, has_depth = false, has_input = false; @@ -127,7 +121,6 @@ VkResult anv_CreateRenderPass( if (a != VK_ATTACHMENT_UNUSED) { has_input = true; pass->attachments[a].usage |= VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT; - pass->attachments[a].subpass_usage[i] |= ANV_SUBPASS_USAGE_INPUT; pass->attachments[a].last_subpass_idx = i; init_first_subpass_layout(&pass->attachments[a], @@ -149,7 +142,6 @@ VkResult anv_CreateRenderPass( if (a != VK_ATTACHMENT_UNUSED) { has_color = true; pass->attachments[a].usage |= VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; - pass->attachments[a].subpass_usage[i] |= ANV_SUBPASS_USAGE_DRAW; pass->attachments[a].last_subpass_idx = i; init_first_subpass_layout(&pass->attachments[a], @@ -172,11 +164,6 @@ VkResult anv_CreateRenderPass( pass->attachments[color_att].usage |= VK_IMAGE_USAGE_TRANSFER_SRC_BIT; pass->attachments[a].usage |= VK_IMAGE_USAGE_TRANSFER_DST_BIT; - - pass->attachments[color_att].subpass_usage[i] |= - ANV_SUBPASS_USAGE_RESOLVE_SRC; - pass->attachments[a].subpass_usage[i] |= - ANV_SUBPASS_USAGE_RESOLVE_DST; pass->attachments[a].last_subpass_idx = i; init_first_subpass_layout(&pass->attachments[a], @@ -193,7 +180,6 @@ VkResult anv_CreateRenderPass( has_depth = true; pass->attachments[a].usage |= VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT; - pass->attachments[a].subpass_usage[i] |= ANV_SUBPASS_USAGE_DRAW; pass->attachments[a].last_subpass_idx = i; init_first_subpass_layout(&pass->attachments[a], |