layers: Removed LOG_ERROR_NON_VALID_OBJ macro
authorMark Lobodzinski <mark@lunarg.com>
Mon, 8 Aug 2016 15:43:22 +0000 (09:43 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Tue, 16 Aug 2016 20:19:55 +0000 (14:19 -0600)
Change-Id: I0609694a3743ca764bcda6de66c0431fb63c1ad1

layers/swapchain.cpp
layers/swapchain.h

index 4421c50..35795da 100644 (file)
@@ -1952,10 +1952,6 @@ static bool validateCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateI
                                     (uint64_t)device, __LINE__, SWAPCHAIN_CREATE_SWAP_DIFF_SURFACE, swapchain_layer_name,
                                     "vkCreateSwapchainKHR() called with pCreateInfo->oldSwapchain pCreateInfo->surface.");
             }
-        } else {
-            // TBD: Leave this in (not sure object_track will check this)?
-            skipCall |=
-                LOG_ERROR_NON_VALID_OBJ(VK_DEBUG_REPORT_OBJECT_TYPE_SWAPCHAIN_KHR_EXT, pCreateInfo->oldSwapchain, "VkSwapchainKHR");
         }
     }
 
index 8be27f1..fdd3bc9 100644 (file)
@@ -84,10 +84,6 @@ const char * swapchain_layer_name = "Swapchain";
 
 #define LAYER_NAME (char *) "Swapchain"
 
-#define LOG_ERROR_NON_VALID_OBJ(objType, type, obj)                                                                                \
-    (my_data) ? log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (objType), (uint64_t)(obj), __LINE__,                 \
-                        SWAPCHAIN_INVALID_HANDLE, LAYER_NAME, "%s() called with a non-valid %s.", __FUNCTION__, (obj))             \
-              : VK_FALSE
 #define LOG_ERROR_NULL_POINTER(objType, type, obj)                                                                                 \
     (my_data) ? log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (objType), (uint64_t)(obj), 0,                        \
                         SWAPCHAIN_NULL_POINTER, LAYER_NAME, "%s() called with NULL pointer %s.", __FUNCTION__, (obj))              \