From cbcf98910b1894480436953d9d1182da5a23e958 Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Wed, 18 Jan 2017 14:52:22 -0700 Subject: [PATCH] layers: Remove redundant CV ClearAttachments check This check was incorrectly labeled, and the actual check is present in the image layer. Change-Id: I29b866eb9da731e0996b95da3052b4878e906602 --- layers/core_validation.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index b60a879..3dd8045 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -8918,17 +8918,6 @@ VKAPI_ATTR void VKAPI_CALL CmdClearAttachments(VkCommandBuffer commandBuffer, ui if (image_view) { auto image_view_state = getImageViewState(dev_data, image_view); - auto aspects_present = image_view_state->create_info.subresourceRange.aspectMask; - auto extra_aspects = clear_desc->aspectMask & ~aspects_present; - // TODO: This is a different check than 01125. Need a new valid usage statement for this case, or should kill check. - if (extra_aspects) { - skip_call |= - log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT, - reinterpret_cast(image_view), __LINE__, VALIDATION_ERROR_01125, "DS", - "vkCmdClearAttachments() with aspects not present in image view: %s. %s", - string_VkImageAspectFlagBits((VkImageAspectFlagBits)extra_aspects), - validation_error_map[VALIDATION_ERROR_01125]); - } for (uint32_t j = 0; j < rectCount; j++) { // The rectangular region specified by a given element of pRects must be contained within the render area of the // current render pass instance -- 2.7.4