From 431538ef1f0778bd4c6ef3e41aae944eaa36e72b Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 30 Jun 2016 15:42:41 +1200 Subject: layers: Apply subpass 0 layout transitions at CmdBeginRenderPass Signed-off-by: Chris Forbes --- layers/core_validation.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'layers/core_validation.cpp') 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__, -- cgit v1.2.3