Lines Matching defs:loader
46 #include "loader.h"
62 struct loader_struct loader = {0};
85 // thread safety lock for accessing global data structures such as "loader"
93 // This table contains the loader's instance dispatch table, which contains
249 (uint64_t)inst, 0, msg_code, "loader", msg);
1046 * CreateInfo extensions that are not loader extensions.
1047 * This is used to skip past the loader extensions prepended
1064 * For Instance extensions implemented within the loader (i.e. DEBUG_REPORT
1065 * the extension must provide two entry points for the loader to use:
1072 * must be placed into the appropriate loader entry points.
1080 * linked directly with the loader.
1101 // Traverse loader's extensions, adding non-duplicate extensions to the list
1109 for (struct loader_instance *inst = loader.instances; inst;
1142 "Failed to alloc struct loader-device");
1820 // TODO what about specVersion? for now insert loader's built
2407 * This function scans the default system loader path(s) or path
2554 if (!loader_init_layer_library_list(&loader.scanned_layer_libraries)) {
2892 for (struct loader_instance *inst = loader.instances; inst;
2911 for (uint32_t i = 0; i < loader.loaded_layer_lib_count; i++) {
2912 if (strcmp(loader.loaded_layer_lib_list[i].lib_name,
2915 loader.loaded_layer_lib_list[i].ref_count++;
2920 return loader.loaded_layer_lib_list[i].lib_handle;
2926 if (loader.loaded_layer_lib_capacity == 0)
2928 else if (loader.loaded_layer_lib_capacity <=
2929 loader.loaded_layer_lib_count * sizeof(struct loader_lib_info))
2930 new_alloc_size = loader.loaded_layer_lib_capacity * 2;
2934 inst, loader.loaded_layer_lib_list,
2935 loader.loaded_layer_lib_capacity, new_alloc_size,
2939 "loader: realloc failed in loader_add_layer_lib");
2942 loader.loaded_layer_lib_capacity = new_alloc_size;
2943 loader.loaded_layer_lib_list = new_layer_lib_list;
2945 new_layer_lib_list = loader.loaded_layer_lib_list;
2946 my_lib = &new_layer_lib_list[loader.loaded_layer_lib_count];
2963 loader.loaded_layer_lib_count++;
2972 uint32_t idx = loader.loaded_layer_lib_count;
2975 for (uint32_t i = 0; i < loader.loaded_layer_lib_count; i++) {
2976 if (strcmp(loader.loaded_layer_lib_list[i].lib_name,
2980 my_lib = &loader.loaded_layer_lib_list[i];
2985 if (idx == loader.loaded_layer_lib_count) {
3006 loader_heap_alloc(inst, loader.loaded_layer_lib_capacity,
3010 "loader: heap alloc failed loader_remove_layer_library");
3016 memcpy(new_layer_lib_list, &loader.loaded_layer_lib_list[0],
3019 if (idx < (loader.loaded_layer_lib_count - 1)) {
3021 memcpy(&new_layer_lib_list[idx], &loader.loaded_layer_lib_list[idx + 1],
3023 (loader.loaded_layer_lib_count - idx - 1));
3026 loader_heap_free(inst, loader.loaded_layer_lib_list);
3027 loader.loaded_layer_lib_count--;
3028 loader.loaded_layer_lib_list = new_layer_lib_list;
3183 * The instance chain is terminated by a loader function
3380 * structure the code wouldn't know where the loader's device_info
3487 "Loader: Device ppEnabledLayerNames contains string "
3514 "Loader: Instance ppEnabledExtensionNames contains "
3573 "Loader: Device ppEnabledExtensionNames contains "
3708 * from it's initial value, the loader was unable to find
3731 struct loader_instance *next = loader.instances;
3738 loader.instances = next->next;
3919 /* Initialize the output pPhysicalDevices with wrapped loader terminator