Home | History | Annotate | Download | only in vulkan

Lines Matching defs:instance

190 			  struct radv_instance *instance,
217 device->instance = instance;
221 device->ws = radv_amdgpu_winsys_create(fd, instance->debug_flags,
222 instance->perftest_flags);
242 (device->instance->perftest_flags & RADV_PERFTEST_SISCHED ? 0x1 : 0) |
243 (device->instance->debug_flags & RADV_DEBUG_UNSAFE_MATH ? 0x2 : 0);
368 radv_handle_per_app_options(struct radv_instance *instance,
381 instance->perftest_flags |= RADV_PERFTEST_SISCHED;
390 struct radv_instance *instance;
418 instance = vk_zalloc2(&default_alloc, pAllocator, sizeof(*instance), 8,
420 if (!instance)
423 instance->_loader_data.loaderMagic = ICD_LOADER_MAGIC;
426 instance->alloc = *pAllocator;
428 instance->alloc = default_alloc;
430 instance->apiVersion = client_version;
431 instance->physicalDeviceCount = -1;
433 result = vk_debug_report_instance_init(&instance->debug_report_callbacks);
435 vk_free2(&default_alloc, pAllocator, instance);
441 VG(VALGRIND_CREATE_MEMPOOL(instance, 0, false));
443 instance->debug_flags = parse_debug_string(getenv("RADV_DEBUG"),
446 instance->perftest_flags = parse_debug_string(getenv("RADV_PERFTEST"),
449 radv_handle_per_app_options(instance, pCreateInfo->pApplicationInfo);
451 if (instance->debug_flags & RADV_DEBUG_NO_SISCHED) {
456 instance->perftest_flags &= ~RADV_PERFTEST_SISCHED;
459 *pInstance = radv_instance_to_handle(instance);
468 RADV_FROM_HANDLE(radv_instance, instance, _instance);
470 if (!instance)
473 for (int i = 0; i < instance->physicalDeviceCount; ++i) {
474 radv_physical_device_finish(instance->physicalDevices + i);
477 VG(VALGRIND_DESTROY_MEMPOOL(instance));
481 vk_debug_report_instance_destroy(&instance->debug_report_callbacks);
483 vk_free(&instance->alloc, instance);
487 radv_enumerate_devices(struct radv_instance *instance)
494 instance->physicalDeviceCount = 0;
505 result = radv_physical_device_init(instance->physicalDevices +
506 instance->physicalDeviceCount,
507 instance,
510 ++instance->physicalDeviceCount;
525 RADV_FROM_HANDLE(radv_instance, instance, _instance);
528 if (instance->physicalDeviceCount < 0) {
529 result = radv_enumerate_devices(instance);
536 *pPhysicalDeviceCount = instance->physicalDeviceCount;
538 *pPhysicalDeviceCount = MIN2(*pPhysicalDeviceCount, instance->physicalDeviceCount);
540 pPhysicalDevices[i] = radv_physical_device_to_handle(instance->physicalDevices + i);
543 return *pPhysicalDeviceCount < instance->physicalDeviceCount ? VK_INCOMPLETE
830 !(pdevice->instance->debug_flags & RADV_DEBUG_NO_COMPUTE_QUEUE))
857 !(pdevice->instance->debug_flags & RADV_DEBUG_NO_COMPUTE_QUEUE)) {
1063 device = vk_zalloc2(&physical_device->instance->alloc, pAllocator,
1070 device->instance = physical_device->instance;
1077 device->alloc = physical_device->instance->alloc;
1109 (device->instance->perftest_flags & RADV_PERFTEST_BINNING);
2186 VkInstance instance,
2197 VkInstance instance,
2202 VkInstance instance,
2205 return radv_GetInstanceProcAddr(instance, pName);
3232 !(device->instance->debug_flags & RADV_DEBUG_NO_FAST_CLEARS))
4004 RADV_FROM_HANDLE(radv_instance, instance, _instance);
4005 return vk_create_debug_report_callback(&instance->debug_report_callbacks,
4006 pCreateInfo, pAllocator, &instance->alloc,
4015 RADV_FROM_HANDLE(radv_instance, instance, _instance);
4016 vk_destroy_debug_report_callback(&instance->debug_report_callbacks,
4017 _callback, pAllocator, &instance->alloc);
4030 RADV_FROM_HANDLE(radv_instance, instance, _instance);
4031 vk_debug_report(&instance->debug_report_callbacks, flags, objectType,