Lines Matching refs:ptr_instance

70     struct loader_instance *ptr_instance = loader_get_instance(instance);  in vkGetInstanceProcAddr()  local
71 if (ptr_instance == NULL) in vkGetInstanceProcAddr()
79 return trampolineGetProcAddr(ptr_instance, pName); in vkGetInstanceProcAddr()
242 struct loader_instance *ptr_instance = NULL; local
252 ptr_instance = (struct loader_instance *) pAllocator->pfnAllocation(
259 ptr_instance =
262 if (ptr_instance == NULL) {
266 tls_instance = ptr_instance;
268 memset(ptr_instance, 0, sizeof(struct loader_instance));
271 ptr_instance->alloc_callbacks = *pAllocator;
282 instance_callback = (VkDebugReportCallbackEXT)ptr_instance;
283 if (util_CreateDebugReportCallback(ptr_instance, pNext, NULL,
285 loader_heap_free(ptr_instance, ptr_instance);
296 memset(&ptr_instance->instance_layer_list, 0,
297 sizeof(ptr_instance->instance_layer_list));
298 memset(&ptr_instance->device_layer_list, 0,
299 sizeof(ptr_instance->device_layer_list));
300 loader_layer_scan(ptr_instance, &ptr_instance->instance_layer_list,
301 &ptr_instance->device_layer_list);
306 loader_validate_layers(ptr_instance, pCreateInfo->enabledLayerCount,
308 &ptr_instance->instance_layer_list);
310 util_DestroyDebugReportCallback(ptr_instance, instance_callback,
312 loader_heap_free(ptr_instance, ptr_instance);
330 ptr_instance, std_validation_str,
336 memset(&ptr_instance->icd_libs, 0, sizeof(ptr_instance->icd_libs));
337 loader_icd_scan(ptr_instance, &ptr_instance->icd_libs);
341 ptr_instance, &ptr_instance->icd_libs, &ptr_instance->ext_list);
343 ptr_instance, &ptr_instance->ext_list,
344 &ptr_instance->instance_layer_list, pCreateInfo);
346 loader_unexpand_inst_layer_names(ptr_instance, saved_layer_count,
349 loader_delete_layer_properties(ptr_instance,
350 &ptr_instance->device_layer_list);
351 loader_delete_layer_properties(ptr_instance,
352 &ptr_instance->instance_layer_list);
353 loader_scanned_icd_clear(ptr_instance, &ptr_instance->icd_libs);
355 ptr_instance,
356 (struct loader_generic_list *)&ptr_instance->ext_list);
357 util_DestroyDebugReportCallback(ptr_instance, instance_callback, NULL);
359 loader_heap_free(ptr_instance, ptr_instance);
363 ptr_instance->disp =
364 loader_heap_alloc(ptr_instance, sizeof(VkLayerInstanceDispatchTable),
366 if (ptr_instance->disp == NULL) {
367 loader_unexpand_inst_layer_names(ptr_instance, saved_layer_count,
370 loader_delete_layer_properties(ptr_instance,
371 &ptr_instance->device_layer_list);
372 loader_delete_layer_properties(ptr_instance,
373 &ptr_instance->instance_layer_list);
374 loader_scanned_icd_clear(ptr_instance, &ptr_instance->icd_libs);
376 ptr_instance,
377 (struct loader_generic_list *)&ptr_instance->ext_list);
378 util_DestroyDebugReportCallback(ptr_instance, instance_callback, NULL);
380 loader_heap_free(ptr_instance, ptr_instance);
383 memcpy(ptr_instance->disp, &instance_disp, sizeof(instance_disp));
384 ptr_instance->next = loader.instances;
385 loader.instances = ptr_instance;
388 res = loader_enable_instance_layers(ptr_instance, pCreateInfo,
389 &ptr_instance->instance_layer_list);
391 loader_unexpand_inst_layer_names(ptr_instance, saved_layer_count,
394 loader_delete_layer_properties(ptr_instance,
395 &ptr_instance->device_layer_list);
396 loader_delete_layer_properties(ptr_instance,
397 &ptr_instance->instance_layer_list);
398 loader_scanned_icd_clear(ptr_instance, &ptr_instance->icd_libs);
400 ptr_instance,
401 (struct loader_generic_list *)&ptr_instance->ext_list);
402 loader.instances = ptr_instance->next;
403 util_DestroyDebugReportCallback(ptr_instance, instance_callback, NULL);
405 loader_heap_free(ptr_instance, ptr_instance->disp);
406 loader_heap_free(ptr_instance, ptr_instance);
410 created_instance = (VkInstance)ptr_instance;
411 res = loader_create_instance_chain(pCreateInfo, pAllocator, ptr_instance,
415 wsi_create_instance(ptr_instance, pCreateInfo);
416 debug_report_create_instance(ptr_instance, pCreateInfo);
426 loader_activate_instance_layer_extensions(ptr_instance, *pInstance);
432 util_DestroyDebugReportCallback(ptr_instance, instance_callback, NULL);
433 loader_unexpand_inst_layer_names(ptr_instance, saved_layer_count,
444 struct loader_instance *ptr_instance = NULL; local
451 ptr_instance = loader_get_instance(instance);
454 loader_deactivate_instance_layers(ptr_instance);
455 if (ptr_instance->phys_devs)
456 loader_heap_free(ptr_instance, ptr_instance->phys_devs);
457 loader_heap_free(ptr_instance, ptr_instance->disp);
458 loader_heap_free(ptr_instance, ptr_instance);