diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-05-11 08:47:55 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-05-11 12:32:14 -0600 |
| commit | ff8ab29de704bed4b4f2e59e00b7869c8f760311 (patch) | |
| tree | f7d646a0f496608bfac593dcdd3c3b01ff821051 /layers/core_validation.cpp | |
| parent | 71a5c1b219cc7e1b5ea84916a5b920f92312d09a (diff) | |
| download | usermoji-ff8ab29de704bed4b4f2e59e00b7869c8f760311.tar.xz | |
layers: Remove MEMTRACK_INVALID_LAYOUT
Use DRAWSTATE_INVALID_IMAGE_LAYOUT instead as MEMTRACK version was only used
in a single case and the check is more in-line with DRAWSTATE behavior.
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 5a98c9fc..443ca501 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -8756,11 +8756,11 @@ CmdBeginRenderPass(VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo *p VkImageLayout &attachment_layout = pRPNode->attachment_first_layout[pRPNode->attachments[i].attachment]; if (attachment_layout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL || attachment_layout == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL) { - skipCall |= - log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, - VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PASS_EXT, (uint64_t)(pRenderPassBegin->renderPass), __LINE__, - MEMTRACK_INVALID_LAYOUT, "MEM", "Cannot clear attachment %d with invalid first layout %d.", - pRPNode->attachments[i].attachment, attachment_layout); + skipCall |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, + VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PASS_EXT, + (uint64_t)(pRenderPassBegin->renderPass), __LINE__, DRAWSTATE_INVALID_LAYOUT, "DS", + "Cannot clear attachment %d with invalid first layout %d.", + pRPNode->attachments[i].attachment, attachment_layout); } } else if (pRPNode->attachments[i].load_op == VK_ATTACHMENT_LOAD_OP_DONT_CARE) { if (cb_data != dev_data->commandBufferMap.end()) { |
