diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-09-22 18:53:59 +1200 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-09-26 08:36:14 +1300 |
| commit | bd697d20d3d4cc1bf2c272af06c2e17268b0d687 (patch) | |
| tree | b9401d392112a7fea2e610046cb7affddf129454 | |
| parent | 3a77471ab4e0e27204aad67c32525266e103cd5f (diff) | |
| download | usermoji-bd697d20d3d4cc1bf2c272af06c2e17268b0d687.tar.xz | |
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 <chrisforbes@google.com>
| -rw-r--r-- | layers/core_validation_types.h | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/layers/core_validation_types.h b/layers/core_validation_types.h index 064dce8a..4e1fc1c7 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<bool> hasSelfDependency; std::vector<DAGNode> subpassToNode; - std::vector<std::vector<VkFormat>> subpassColorFormats; std::vector<MT_PASS_ATTACHMENT_INFO> attachments; std::unordered_map<uint32_t, bool> attachment_first_read; std::unordered_map<uint32_t, VkImageLayout> 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<VkFormat> 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 |
