layers: Removed swapchain ZERO_VALUE check
authorMark Lobodzinski <mark@lunarg.com>
Mon, 8 Aug 2016 16:41:18 +0000 (10:41 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Tue, 16 Aug 2016 20:19:55 +0000 (14:19 -0600)
This validation is already performed in parameter_validation.

Change-Id: I3c1a7f17d68fa81f7770b7dd88cb075be8e59175

layers/swapchain.cpp
layers/swapchain.h

index 80907be..e44fbc5 100644 (file)
@@ -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<std::mutex> lock(global_lock);
index dcb130d..16048e5 100644 (file)
@@ -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 "     \