aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2016-06-30 15:42:41 +1200
committerChris Forbes <chrisforbes@google.com>2016-07-01 12:02:30 +1200
commit431538ef1f0778bd4c6ef3e41aae944eaa36e72b (patch)
tree54a79ecf6b4fe937b66db23756b27d7d84ee91cf /layers/core_validation.cpp
parent100e6950ddcd2c74529040adf3655050d586ef73 (diff)
downloadusermoji-431538ef1f0778bd4c6ef3e41aae944eaa36e72b.tar.xz
layers: Apply subpass 0 layout transitions at CmdBeginRenderPass
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 8f0192fc..51c7f065 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -9267,6 +9267,9 @@ CmdBeginRenderPass(VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo *p
pCB->framebuffers.insert(pRenderPassBegin->framebuffer);
// Connect this framebuffer to this cmdBuffer
framebuffer->cb_bindings.insert(pCB);
+
+ // transition attachments to the correct layouts for the first subpass
+ TransitionSubpassLayouts(dev_data, pCB, &pCB->activeRenderPassBeginInfo, pCB->activeSubpass);
} else {
skipCall |=
log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0, __LINE__,