layers: Fix copy-paste "DEPTH" instead of "STENCIL"
authorTobin Ehlis <tobine@google.com>
Thu, 21 Jul 2016 20:48:21 +0000 (14:48 -0600)
committerTobin Ehlis <tobine@google.com>
Fri, 22 Jul 2016 20:18:15 +0000 (14:18 -0600)
layers/core_validation.cpp

index 3c5c87d..159f848 100644 (file)
@@ -8023,7 +8023,7 @@ static bool ValidateBarriers(const char *funcName, VkCommandBuffer cmdBuffer, ui
                                     funcName);
                         }
                     } else { // stencil-only case
-                        if (!(aspect_mask & VK_IMAGE_ASPECT_DEPTH_BIT)) {
+                        if (!(aspect_mask & VK_IMAGE_ASPECT_STENCIL_BIT)) {
                             log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0,
                                     __LINE__, DRAWSTATE_INVALID_BARRIER, "DS", "%s: Image is a stencil-only format and thus must "
                                                                                "have VK_IMAGE_ASPECT_STENCIL_BIT set.",