loader: Remove validation checks from loader.c
authorMark Lobodzinski <mark@lunarg.com>
Wed, 23 Sep 2015 15:44:22 +0000 (09:44 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Wed, 23 Sep 2015 17:23:11 +0000 (11:23 -0600)
These checks are covered by ObjectTracker.

loader/loader.c

index 96b0120248daa1ad3a9c24559373c6f14490de8a..56b64968fe768c03af7c459603a49137553052c3 100644 (file)
@@ -2675,19 +2675,10 @@ void VKAPI loader_DestroyInstance(
         prev = next;
         next = next->next;
     }
-    /* TODOVV: Move this test to validation layer */
-//    if (next  == NULL) {
-//        // This must be an invalid instance handle or empty list
-//        return VK_ERROR_INVALID_HANDLE;
-//    }
 
     while (icds) {
         if (icds->instance) {
             icds->DestroyInstance(icds->instance);
-            /* TODOVV: Move this test to validation layer */
-            //if (res != VK_SUCCESS)
-            //    loader_log(VK_DBG_REPORT_WARN_BIT, 0,
-            //                "ICD ignored: failed to DestroyInstance on device");
         }
         next_icd = icds->next;
         icds->instance = VK_NULL_HANDLE;