From bd697d20d3d4cc1bf2c272af06c2e17268b0d687 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 22 Sep 2016 18:53:59 +1200 Subject: [PATCH] layers: Get rid of some junk in RENDER_PASS_NODE::ctor Many moons ago, ShaderChecker used this state. Now, it digs directly in the CreateInfo, so there are no clients. Nuke it. Signed-off-by: Chris Forbes --- layers/core_validation_types.h | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/layers/core_validation_types.h b/layers/core_validation_types.h index 064dce8..4e1fc1c 100644 --- a/layers/core_validation_types.h +++ b/layers/core_validation_types.h @@ -315,35 +315,12 @@ struct RENDER_PASS_NODE : public BASE_NODE { VkRenderPassCreateInfo const *pCreateInfo; std::vector hasSelfDependency; std::vector subpassToNode; - std::vector> subpassColorFormats; std::vector attachments; std::unordered_map attachment_first_read; std::unordered_map attachment_first_layout; - RENDER_PASS_NODE(VkRenderPassCreateInfo const *pCreateInfo) : pCreateInfo(pCreateInfo) { - uint32_t i; - - subpassColorFormats.reserve(pCreateInfo->subpassCount); - for (i = 0; i < pCreateInfo->subpassCount; i++) { - const VkSubpassDescription *subpass = &pCreateInfo->pSubpasses[i]; - std::vector color_formats; - uint32_t j; - - color_formats.reserve(subpass->colorAttachmentCount); - for (j = 0; j < subpass->colorAttachmentCount; j++) { - const uint32_t att = subpass->pColorAttachments[j].attachment; - - if (att != VK_ATTACHMENT_UNUSED) { - color_formats.push_back(pCreateInfo->pAttachments[att].format); - } - else { - color_formats.push_back(VK_FORMAT_UNDEFINED); - } - } - - subpassColorFormats.push_back(color_formats); - } - } + RENDER_PASS_NODE(VkRenderPassCreateInfo const *pCreateInfo) + : pCreateInfo(pCreateInfo) {} }; // Cmd Buffer Tracking -- 2.7.4