From 017039967485a4ff4edb5a4a7be9585002b8eadd Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Mon, 8 Aug 2016 10:41:18 -0600 Subject: layers: Removed swapchain ZERO_VALUE check This validation is already performed in parameter_validation. Change-Id: I3c1a7f17d68fa81f7770b7dd88cb075be8e59175 --- layers/swapchain.cpp | 3 --- layers/swapchain.h | 4 ---- 2 files changed, 7 deletions(-) diff --git a/layers/swapchain.cpp b/layers/swapchain.cpp index 80907be2..e44fbc58 100644 --- a/layers/swapchain.cpp +++ b/layers/swapchain.cpp @@ -2148,9 +2148,6 @@ VKAPI_ATTR VkResult VKAPI_CALL QueuePresentKHR(VkQueue queue, const VkPresentInf if (pPresentInfo->pNext != NULL) { skipCall |= LOG_INFO_WRONG_NEXT(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "pPresentInfo"); } - if (!pPresentInfo->swapchainCount) { - skipCall |= LOG_ERROR_ZERO_VALUE(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "pPresentInfo->swapchainCount"); - } // Note: pPresentInfo->pResults is allowed to be NULL std::unique_lock lock(global_lock); diff --git a/layers/swapchain.h b/layers/swapchain.h index dcb130d9..16048e58 100644 --- a/layers/swapchain.h +++ b/layers/swapchain.h @@ -84,10 +84,6 @@ const char * swapchain_layer_name = "Swapchain"; #define LAYER_NAME (char *) "Swapchain" -#define LOG_ERROR_ZERO_VALUE(objType, type, obj) \ - (my_data) ? log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (objType), (uint64_t)(obj), 0, SWAPCHAIN_ZERO_VALUE, \ - LAYER_NAME, "%s() called with a zero value for %s.", __FUNCTION__, (obj)) \ - : VK_FALSE #define LOG_ERROR_QUEUE_FAMILY_INDEX_TOO_LARGE(objType, type, obj, val1, val2) \ (my_data) ? log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (objType), (uint64_t)(obj), 0, \ SWAPCHAIN_QUEUE_FAMILY_INDEX_TOO_LARGE, LAYER_NAME, "%s() called with a queueFamilyIndex that is too " \ -- cgit v1.2.3