diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2016-08-08 10:41:18 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2016-08-16 14:19:55 -0600 |
| commit | 017039967485a4ff4edb5a4a7be9585002b8eadd (patch) | |
| tree | d20d87d262cbd844c4ee218459a711462c54299e | |
| parent | 7fe0bf0c7a20b9c5d6774dc502a66c749a9a2d7d (diff) | |
| download | usermoji-017039967485a4ff4edb5a4a7be9585002b8eadd.tar.xz | |
layers: Removed swapchain ZERO_VALUE check
This validation is already performed in parameter_validation.
Change-Id: I3c1a7f17d68fa81f7770b7dd88cb075be8e59175
| -rw-r--r-- | layers/swapchain.cpp | 3 | ||||
| -rw-r--r-- | layers/swapchain.h | 4 |
2 files changed, 0 insertions, 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<std::mutex> 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 " \ |
