diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-09-08 15:35:36 +1200 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-09-09 14:55:32 +1200 |
| commit | 2e137d38b51759e7e2c5b7b1484f053479a191ce (patch) | |
| tree | 87389e2cb1511ed754482ad5f6c6157c31c401f3 /layers/core_validation.cpp | |
| parent | 48c9304283e3fa12f79e304410ffe1650f39c375 (diff) | |
| download | usermoji-2e137d38b51759e7e2c5b7b1484f053479a191ce.tar.xz | |
layers: Make d/s CmdClearAttachments without d/s attachment warning
This is pointless, but well-defined. Rework warning message to not
reference the VkClearAttachment::colorAttachment, as it's only
meaningful for color clears.
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index a6da35ee..aa6a908f 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -8122,13 +8122,9 @@ VKAPI_ATTR void VKAPI_CALL CmdClearAttachments(VkCommandBuffer commandBuffer, ui VK_ATTACHMENT_UNUSED)) { // Says no DS will be used in active subpass skip_call |= log_msg( - dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT, + dev_data->report_data, VK_DEBUG_REPORT_WARNING_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT, (uint64_t)commandBuffer, __LINE__, DRAWSTATE_MISSING_ATTACHMENT_REFERENCE, "DS", - "vkCmdClearAttachments() attachment index %d does not match depthStencilAttachment.attachment (%d) found " - "in active subpass %d", - attachment->colorAttachment, - (pSD->pDepthStencilAttachment) ? pSD->pDepthStencilAttachment->attachment : VK_ATTACHMENT_UNUSED, - pCB->activeSubpass); + "vkCmdClearAttachments() depth/stencil clear with no depth/stencil attachment in subpass; ignored"); } } } |
