layers: Update layout mismatch message to provide more detail.
authorMichael Lentine <mlentine@google.com>
Fri, 25 Mar 2016 02:36:53 +0000 (21:36 -0500)
committerTobin Ehlis <tobine@google.com>
Fri, 25 Mar 2016 14:10:42 +0000 (08:10 -0600)
layers/core_validation.cpp

index 7d81032..6b463d9 100644 (file)
@@ -9498,8 +9498,9 @@ VkBool32 VerifyFramebufferAndRenderPassLayouts(VkCommandBuffer cmdBuffer, const
                         log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0, __LINE__,
                                 DRAWSTATE_INVALID_RENDERPASS, "DS", "You cannot start a render pass using attachment %i "
                                                                     "where the "
-                                                                    "intial layout differs from the starting layout.",
-                                i);
+                                                                    "intial layout is %s and the layout of the attachment at the "
+                                                                    "start of the render pass is %s. The layouts must match.",
+                                i, string_VkImageLayout(newNode.layout), string_VkImageLayout(node.layout));
                 }
             }
         }