diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2015-09-07 13:59:43 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2015-09-10 11:20:57 -0600 |
| commit | e4c92a63944ab66a8a10da4a55acccef15805e52 (patch) | |
| tree | b583ea7045a3de06d76e7888b9d665bbce73fe7e /loader/loader.c | |
| parent | a52e058a91a3ce97c989760025a557fbcbf26368 (diff) | |
| download | usermoji-e4c92a63944ab66a8a10da4a55acccef15805e52.tar.xz | |
vulkan.h: Change return types of some functions to void
Functions that should be thought of as "impossible to fail in the face
of valid parameters" have had their return types changed to void.
This includes all of the vkDestroy functions, vkFreeMemory, and vkUnmapMemory.
vkUpdateDescriptorSets is also included, because of the frequency the function
is expected to be called.
Diffstat (limited to 'loader/loader.c')
| -rw-r--r-- | loader/loader.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/loader/loader.c b/loader/loader.c index b12a065d..a434b597 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -2641,13 +2641,12 @@ VkResult VKAPI loader_CreateInstance( return VK_SUCCESS; } -VkResult VKAPI loader_DestroyInstance( +void VKAPI loader_DestroyInstance( VkInstance instance) { struct loader_instance *ptr_instance = loader_instance(instance); struct loader_icd *icds = ptr_instance->icds; struct loader_icd *next_icd; - VkResult res; // Remove this instance from the list of instances: struct loader_instance *prev = NULL; @@ -2672,10 +2671,11 @@ VkResult VKAPI loader_DestroyInstance( while (icds) { if (icds->instance) { - res = icds->DestroyInstance(icds->instance); - if (res != VK_SUCCESS) - loader_log(VK_DBG_REPORT_WARN_BIT, 0, - "ICD ignored: failed to DestroyInstance on device"); + 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; @@ -2687,7 +2687,6 @@ VkResult VKAPI loader_DestroyInstance( loader_delete_layer_properties(ptr_instance, &ptr_instance->instance_layer_list); loader_scanned_icd_clear(ptr_instance, &ptr_instance->icd_libs); loader_destroy_ext_list(ptr_instance, &ptr_instance->ext_list); - return VK_SUCCESS; } VkResult loader_init_physical_device_info( |
