aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2017-02-28 18:46:44 +1300
committerChris Forbes <chrisf@ijw.co.nz>2017-03-01 09:52:04 +1300
commit3e40c3b4c5148834ba7763a991bbe26b3b45a8a9 (patch)
tree39c917aae4efcca1a36eb125f38bf6c193b2f0f6 /layers/core_validation.cpp
parenta0128011e0f93f51984df4fc4ada92ae2f9e06a7 (diff)
downloadusermoji-3e40c3b4c5148834ba7763a991bbe26b3b45a8a9.tar.xz
layers: remove attachment_first_layout tracking
Nothing uses this. Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 1c9ab864..7ea68475 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -9265,14 +9265,12 @@ VKAPI_ATTR VkResult VKAPI_CALL CreateRenderPass(VkDevice device, const VkRenderP
// TODO: Maybe fill list and then copy instead of locking
std::unordered_map<uint32_t, bool> &attachment_first_read = render_pass->attachment_first_read;
- std::unordered_map<uint32_t, VkImageLayout> &attachment_first_layout = render_pass->attachment_first_layout;
for (uint32_t i = 0; i < pCreateInfo->subpassCount; ++i) {
const VkSubpassDescription &subpass = pCreateInfo->pSubpasses[i];
for (uint32_t j = 0; j < subpass.colorAttachmentCount; ++j) {
uint32_t attachment = subpass.pColorAttachments[j].attachment;
if (!attachment_first_read.count(attachment)) {
attachment_first_read.insert(std::make_pair(attachment, false));
- attachment_first_layout.insert(std::make_pair(attachment, subpass.pColorAttachments[j].layout));
}
if (subpass.pResolveAttachments && subpass.pResolveAttachments[j].attachment != VK_ATTACHMENT_UNUSED) {
@@ -9280,7 +9278,6 @@ VKAPI_ATTR VkResult VKAPI_CALL CreateRenderPass(VkDevice device, const VkRenderP
attachment = subpass.pResolveAttachments[j].attachment;
if (!attachment_first_read.count(attachment)) {
attachment_first_read.insert(std::make_pair(attachment, false));
- attachment_first_layout.insert(std::make_pair(attachment, subpass.pResolveAttachments[j].layout));
}
}
}
@@ -9288,14 +9285,12 @@ VKAPI_ATTR VkResult VKAPI_CALL CreateRenderPass(VkDevice device, const VkRenderP
uint32_t attachment = subpass.pDepthStencilAttachment->attachment;
if (!attachment_first_read.count(attachment)) {
attachment_first_read.insert(std::make_pair(attachment, false));
- attachment_first_layout.insert(std::make_pair(attachment, subpass.pDepthStencilAttachment->layout));
}
}
for (uint32_t j = 0; j < subpass.inputAttachmentCount; ++j) {
uint32_t attachment = subpass.pInputAttachments[j].attachment;
if (!attachment_first_read.count(attachment)) {
attachment_first_read.insert(std::make_pair(attachment, true));
- attachment_first_layout.insert(std::make_pair(attachment, subpass.pInputAttachments[j].layout));
}
}
}