From e29da03f6e7a3028855c19979a111053773fa65c Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Mon, 6 Feb 2017 15:04:23 -0700 Subject: layers: Fixed some blitimage VUs There were three checks which were improperly limited to depth-stencil aspects. Two of the checks (for zero layerCounts) are also not prohibited by the spec (for ImageBlit structures, anyhow) and so have been changed to warnings. The remaining check for matching src and dest layerCounts was moved and had the correct VU ID added. Change-Id: Idb37fa94e4359e25c7bdcaed8ad65c2ddddefe0d --- layers/core_validation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 651f2ccd..0d335d67 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -6291,8 +6291,8 @@ static bool ValidateImageAspectMask(layer_data *dev_data, VkImage image, VkForma return skip; } -static bool ValidateImageSubrangeLevelLayerCounts(layer_data *dev_data, const VkImageSubresourceRange &subresourceRange, - const char *func_name) { +bool ValidateImageSubrangeLevelLayerCounts(layer_data *dev_data, const VkImageSubresourceRange &subresourceRange, + const char *func_name) { bool skip = false; if (subresourceRange.levelCount == 0) { skip |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0, __LINE__, -- cgit v1.2.3