From: Charles Giessen Date: Mon, 18 Dec 2023 22:51:08 +0000 (-0700) Subject: Rename total_icd_count to icd_terms_count X-Git-Tag: upstream/1.3.296~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9998427deeb3a4ff28c00a574e7020662129347b;p=platform%2Fupstream%2FVulkan-Loader.git Rename total_icd_count to icd_terms_count --- diff --git a/loader/debug_utils.c b/loader/debug_utils.c index 341dbb1b..6656eb77 100644 --- a/loader/debug_utils.c +++ b/loader/debug_utils.c @@ -183,7 +183,7 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateDebugUtilsMessengerEXT(VkInstanc VkLayerDbgFunctionNode *new_dbg_func_node = NULL; icd_info = (VkDebugUtilsMessengerEXT *)loader_calloc_with_instance_fallback( - pAllocator, inst, inst->total_icd_count * sizeof(VkDebugUtilsMessengerEXT), VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); + pAllocator, inst, inst->icd_terms_count * sizeof(VkDebugUtilsMessengerEXT), VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); if (!icd_info) { res = VK_ERROR_OUT_OF_HOST_MEMORY; @@ -439,7 +439,7 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateDebugReportCallbackEXT(VkInstanc VkLayerDbgFunctionNode *new_dbg_func_node = NULL; icd_info = ((VkDebugReportCallbackEXT *)loader_calloc_with_instance_fallback( - pAllocator, inst, inst->total_icd_count * sizeof(VkDebugReportCallbackEXT), VK_SYSTEM_ALLOCATION_SCOPE_OBJECT)); + pAllocator, inst, inst->icd_terms_count * sizeof(VkDebugReportCallbackEXT), VK_SYSTEM_ALLOCATION_SCOPE_OBJECT)); if (!icd_info) { res = VK_ERROR_OUT_OF_HOST_MEMORY; goto out; diff --git a/loader/loader.c b/loader/loader.c index b000fedb..474a01ee 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -1311,7 +1311,7 @@ void loader_remove_logical_device(struct loader_icd_term *icd_term, struct loade void loader_icd_destroy(struct loader_instance *ptr_inst, struct loader_icd_term *icd_term, const VkAllocationCallbacks *pAllocator) { - ptr_inst->total_icd_count--; + ptr_inst->icd_terms_count--; for (struct loader_device *dev = icd_term->logical_device_list; dev;) { struct loader_device *next_dev = dev->next; loader_destroy_logical_device(dev, pAllocator); @@ -1335,7 +1335,7 @@ struct loader_icd_term *loader_icd_add(struct loader_instance *ptr_inst, const s // Prepend to the list icd_term->next = ptr_inst->icd_terms; ptr_inst->icd_terms = icd_term; - ptr_inst->total_icd_count++; + ptr_inst->icd_terms_count++; return icd_term; } @@ -6152,7 +6152,7 @@ VkResult setup_loader_term_phys_devs(struct loader_instance *inst) { } #endif - icd_count = inst->total_icd_count; + icd_count = inst->icd_terms_count; // Allocate something to store the physical device characteristics that we read from each ICD. icd_phys_dev_array = diff --git a/loader/loader_common.h b/loader/loader_common.h index 6c2b4368..53ee0f0d 100644 --- a/loader/loader_common.h +++ b/loader/loader_common.h @@ -278,7 +278,7 @@ struct loader_instance { struct loader_instance *next; - uint32_t total_icd_count; + uint32_t icd_terms_count; struct loader_icd_term *icd_terms; struct loader_icd_tramp_list icd_tramp_list; diff --git a/loader/wsi.c b/loader/wsi.c index 46c81b9e..ad4d6b90 100644 --- a/loader/wsi.c +++ b/loader/wsi.c @@ -561,7 +561,7 @@ VkIcdSurface *AllocateIcdSurfaceStruct(struct loader_instance *instance, size_t pIcdSurface->non_platform_offset = (uint32_t)((uint8_t *)(&pIcdSurface->base_size) - (uint8_t *)pIcdSurface); pIcdSurface->entire_size = sizeof(VkIcdSurface); - pIcdSurface->real_icd_surfaces = loader_instance_heap_calloc(instance, sizeof(VkSurfaceKHR) * instance->total_icd_count, + pIcdSurface->real_icd_surfaces = loader_instance_heap_calloc(instance, sizeof(VkSurfaceKHR) * instance->icd_terms_count, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); if (pIcdSurface->real_icd_surfaces == NULL) { loader_instance_heap_free(instance, pIcdSurface);