Home | History | Annotate | Download | only in vulkan

Lines Matching defs:instance

227       return vk_errorf(device->instance, device,
234 return vk_errorf(device->instance, device,
279 struct anv_instance *instance,
292 device->instance = instance;
318 result = vk_errorf(device->instance, device,
329 result = vk_errorf(device->instance, device,
337 result = vk_errorf(device->instance, device,
344 result = vk_errorf(device->instance, device,
352 result = vk_errorf(device->instance, device,
502 struct anv_instance *instance;
508 * Create/Destroy of instance.
560 instance = vk_alloc2(&default_alloc, pAllocator, sizeof(*instance), 8,
562 if (!instance)
565 instance->_loader_data.loaderMagic = ICD_LOADER_MAGIC;
568 instance->alloc = *pAllocator;
570 instance->alloc = default_alloc;
572 instance->apiVersion = client_version;
573 instance->enabled_extensions = enabled_extensions;
575 for (unsigned i = 0; i < ARRAY_SIZE(instance->dispatch.entrypoints); i++) {
579 if (!anv_entrypoint_is_enabled(i, instance->apiVersion,
580 &instance->enabled_extensions, NULL)) {
581 instance->dispatch.entrypoints[i] = NULL;
583 instance->dispatch.entrypoints[i] = anv_dispatch_table.entrypoints[i];
585 instance->dispatch.entrypoints[i] =
590 instance->physicalDeviceCount = -1;
592 result = vk_debug_report_instance_init(&instance->debug_report_callbacks);
594 vk_free2(&default_alloc, pAllocator, instance);
600 VG(VALGRIND_CREATE_MEMPOOL(instance, 0, false));
602 *pInstance = anv_instance_to_handle(instance);
611 ANV_FROM_HANDLE(anv_instance, instance, _instance);
613 if (!instance)
616 if (instance->physicalDeviceCount > 0) {
618 assert(instance->physicalDeviceCount == 1);
619 anv_physical_device_finish(&instance->physicalDevice);
622 VG(VALGRIND_DESTROY_MEMPOOL(instance));
624 vk_debug_report_instance_destroy(&instance->debug_report_callbacks);
628 vk_free(&instance->alloc, instance);
632 anv_enumerate_devices(struct anv_instance *instance)
639 instance->physicalDeviceCount = 0;
650 result = anv_physical_device_init(&instance->physicalDevice,
651 instance,
660 instance->physicalDeviceCount = 1;
671 ANV_FROM_HANDLE(anv_instance, instance, _instance);
675 if (instance->physicalDeviceCount < 0) {
676 result = anv_enumerate_devices(instance);
682 if (instance->physicalDeviceCount > 0) {
683 assert(instance->physicalDeviceCount == 1);
685 *i = anv_physical_device_to_handle(&instance->physicalDevice);
1082 ANV_FROM_HANDLE(anv_instance, instance, _instance);
1101 if (instance == NULL)
1108 return instance->dispatch.entrypoints[idx];
1116 VkInstance instance,
1121 VkInstance instance,
1124 return anv_GetInstanceProcAddr(instance, pName);
1149 ANV_FROM_HANDLE(anv_instance, instance, _instance);
1150 return vk_create_debug_report_callback(&instance->debug_report_callbacks,
1151 pCreateInfo, pAllocator, &instance->alloc,
1160 ANV_FROM_HANDLE(anv_instance, instance, _instance);
1161 vk_destroy_debug_report_callback(&instance->debug_report_callbacks,
1162 _callback, pAllocator, &instance->alloc);
1175 ANV_FROM_HANDLE(anv_instance, instance, _instance);
1176 vk_debug_report(&instance->debug_report_callbacks, flags, objectType,
1237 if (device->instance->physicalDevice.has_exec_async)
1307 if (!anv_entrypoint_is_enabled(i, device->instance->apiVersion,
1308 &device->instance->enabled_extensions,
1362 device = vk_alloc2(&physical_device->instance->alloc, pAllocator,
1369 device->instance = physical_device->instance;
1376 device->alloc = physical_device->instance->alloc;
1629 return vk_errorf(device->instance, device, VK_ERROR_DEVICE_LOST,
1635 return vk_errorf(device->instance, device, VK_ERROR_DEVICE_LOST,
1639 return vk_errorf(device->instance, device, VK_ERROR_DEVICE_LOST,
1659 return vk_errorf(device->instance, device, VK_ERROR_DEVICE_LOST,
1682 return vk_errorf(device->instance, device, VK_ERROR_DEVICE_LOST,
1732 struct anv_physical_device *pdevice = &device->instance->physicalDevice;
1803 result = vk_errorf(device->instance, device,
1857 return vk_errorf(device->instance, NULL,
1914 struct anv_physical_device *pdevice = &device->instance->physicalDevice;
2089 struct anv_physical_device *pdevice = &device->instance->physicalDevice;
2148 struct anv_physical_device *pdevice = &device->instance->physicalDevice;
2180 struct anv_physical_device *pdevice = &device->instance->physicalDevice;