Lines Matching refs:out_files
2702 …nd_adjust_data_file_list(const struct loader_instance *inst, struct loader_data_files *out_files) { in check_and_adjust_data_file_list() argument
2703 if (out_files->count == 0) { in check_and_adjust_data_file_list()
2704 …out_files->filename_list = loader_instance_heap_alloc(inst, 64 * sizeof(char *), VK_SYSTEM_ALLOCAT… in check_and_adjust_data_file_list()
2705 if (NULL == out_files->filename_list) { in check_and_adjust_data_file_list()
2710 out_files->alloc_count = 64; in check_and_adjust_data_file_list()
2711 } else if (out_files->count == out_files->alloc_count) { in check_and_adjust_data_file_list()
2712 size_t new_size = out_files->alloc_count * sizeof(char *) * 2; in check_and_adjust_data_file_list()
2713 …void *new_ptr = loader_instance_heap_realloc(inst, out_files->filename_list, out_files->alloc_coun… in check_and_adjust_data_file_list()
2720 out_files->filename_list = new_ptr; in check_and_adjust_data_file_list()
2721 out_files->alloc_count *= 2; in check_and_adjust_data_file_list()
2728 …e(const struct loader_instance *inst, const char *file_name, struct loader_data_files *out_files) { in add_manifest_file() argument
2732 vk_result = check_and_adjust_data_file_list(inst, out_files); in add_manifest_file()
2737 out_files->filename_list[out_files->count] = in add_manifest_file()
2739 if (out_files->filename_list[out_files->count] == NULL) { in add_manifest_file()
2741 out_files->count); in add_manifest_file()
2746 strcpy(out_files->filename_list[out_files->count++], file_name); in add_manifest_file()
2754 struct loader_data_files *out_files) { in add_if_manifest_file() argument
2758 assert(NULL != out_files && "add_if_manifest_file: Received NULL pointer for out_files"); in add_if_manifest_file()
2769 vk_result = add_manifest_file(inst, file_name, out_files); in add_if_manifest_file()
2778 …a_files(const struct loader_instance *inst, char *search_path, struct loader_data_files *out_files, in add_data_files() argument
2822 local_res = add_if_manifest_file(inst, name, out_files); in add_data_files()
2847 local_res = add_if_manifest_file(inst, name, out_files); in add_data_files()
2862 if (use_first_found_manifest && out_files->count > 0) { in add_data_files()
2876 struct loader_data_files *out_files) { in read_data_files_in_search_paths() argument
3172 vk_result = add_data_files(inst, search_path, out_files, use_first_found_manifest);
3174 if (log_flags != 0 && out_files->count > 0) {
3176 for (uint32_t cur_file = 0; cur_file < out_files->count; ++cur_file) {
3177 loader_log(inst, log_flags, 0, " %s", out_files->filename_list[cur_file]);
3235 const char *path_override, struct loader_data_files *out_files) { in loader_get_data_files() argument
3240 if (out_files->filename_list != NULL) { in loader_get_data_files()
3241 for (uint32_t i = 0; i < out_files->count; i++) { in loader_get_data_files()
3242 if (NULL != out_files->filename_list[i]) { in loader_get_data_files()
3243 loader_instance_heap_free(inst, out_files->filename_list[i]); in loader_get_data_files()
3244 out_files->filename_list[i] = NULL; in loader_get_data_files()
3247 loader_instance_heap_free(inst, out_files->filename_list); in loader_get_data_files()
3249 out_files->count = 0; in loader_get_data_files()
3250 out_files->alloc_count = 0; in loader_get_data_files()
3251 out_files->filename_list = NULL; in loader_get_data_files()
3253 …= read_data_files_in_search_paths(inst, manifest_type, path_override, &override_active, out_files); in loader_get_data_files()
3280 …ead_data_files_in_registry(inst, manifest_type, warn_if_not_present, registry_location, out_files); in loader_get_data_files()
3282 if (VK_SUCCESS != tmp_res && out_files->count == 0) { in loader_get_data_files()
3291 if (VK_SUCCESS != res && NULL != out_files->filename_list) { in loader_get_data_files()
3292 for (uint32_t remove = 0; remove < out_files->count; remove++) { in loader_get_data_files()
3293 loader_instance_heap_free(inst, out_files->filename_list[remove]); in loader_get_data_files()
3295 loader_instance_heap_free(inst, out_files->filename_list); in loader_get_data_files()
3296 out_files->count = 0; in loader_get_data_files()
3297 out_files->alloc_count = 0; in loader_get_data_files()
3298 out_files->filename_list = NULL; in loader_get_data_files()