diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-03-10 08:53:58 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-03-10 09:41:49 -0700 |
| commit | 85b02a2eca004cddf3a8f56dab2a5ee27f8b72c9 (patch) | |
| tree | 1252c3275b5afb141c02cf029133cc7d51b965a5 /layers | |
| parent | a0c3998fc18cb5d9362b19a3478c70699b284352 (diff) | |
| download | usermoji-85b02a2eca004cddf3a8f56dab2a5ee27f8b72c9.tar.xz | |
layers: GH96 Fix error messages for bad layout
Instead of printing attachements as #s in the error messages, print the layout string.
Diffstat (limited to 'layers')
| -rw-r--r-- | layers/draw_state.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 338e1b37..ac36dc92 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -7263,8 +7263,8 @@ VkBool32 ValidateLayouts(const layer_data *my_data, VkDevice device, const VkRen } else { skip |= log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0, __LINE__, DRAWSTATE_INVALID_IMAGE_LAYOUT, "DS", - "Layout for input attachment is %d but can only be READ_ONLY_OPTIMAL or GENERAL.", - subpass.pInputAttachments[j].attachment); + "Layout for input attachment is %s but can only be READ_ONLY_OPTIMAL or GENERAL.", + string_VkImageLayout(subpass.pInputAttachments[j].layout)); } } } @@ -7278,8 +7278,8 @@ VkBool32 ValidateLayouts(const layer_data *my_data, VkDevice device, const VkRen } else { skip |= log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0, __LINE__, DRAWSTATE_INVALID_IMAGE_LAYOUT, "DS", - "Layout for color attachment is %d but can only be COLOR_ATTACHMENT_OPTIMAL or GENERAL.", - subpass.pColorAttachments[j].attachment); + "Layout for color attachment is %s but can only be COLOR_ATTACHMENT_OPTIMAL or GENERAL.", + string_VkImageLayout(subpass.pColorAttachments[j].layout)); } } } @@ -7294,8 +7294,8 @@ VkBool32 ValidateLayouts(const layer_data *my_data, VkDevice device, const VkRen skip |= log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0, __LINE__, DRAWSTATE_INVALID_IMAGE_LAYOUT, "DS", - "Layout for depth attachment is %d but can only be DEPTH_STENCIL_ATTACHMENT_OPTIMAL or GENERAL.", - subpass.pDepthStencilAttachment->attachment); + "Layout for depth attachment is %s but can only be DEPTH_STENCIL_ATTACHMENT_OPTIMAL or GENERAL.", + string_VkImageLayout(subpass.pDepthStencilAttachment->layout)); } } } |
