Lines Matching refs:instance
173 struct gfxstream_vk_physical_device* physical_device, struct gfxstream_vk_instance* instance, in gfxstream_vk_physical_device_init() argument
188 VkResult result = vk_physical_device_init(&physical_device->vk, &instance->vk, in gfxstream_vk_physical_device_init()
194 physical_device->instance = instance; in gfxstream_vk_physical_device_init()
215 vk_free(&physical_device->instance->alloc, physical_device); in gfxstream_vk_destroy_physical_device()
304 struct gfxstream_vk_instance* instance; in gfxstream_vk_CreateInstance() local
307 instance = (struct gfxstream_vk_instance*)vk_zalloc(pAllocator, sizeof(*instance), 8, in gfxstream_vk_CreateInstance()
309 if (NULL == instance) { in gfxstream_vk_CreateInstance()
331 result = vkEnc->vkCreateInstance(pCreateInfo, nullptr, &instance->internal_object, in gfxstream_vk_CreateInstance()
349 result = vk_instance_init(&instance->vk, get_instance_extensions(), &dispatch_table, in gfxstream_vk_CreateInstance()
353 vk_free(pAllocator, instance); in gfxstream_vk_CreateInstance()
357 instance->vk.physical_devices.enumerate = gfxstream_vk_enumerate_devices; in gfxstream_vk_CreateInstance()
358 instance->vk.physical_devices.destroy = gfxstream_vk_destroy_physical_device; in gfxstream_vk_CreateInstance()
361 *pInstance = gfxstream_vk_instance_to_handle(instance); in gfxstream_vk_CreateInstance()
369 VK_FROM_HANDLE(gfxstream_vk_instance, instance, _instance); in gfxstream_vk_DestroyInstance()
372 vkEnc->vkDestroyInstance(instance->internal_object, pAllocator, true /* do lock */); in gfxstream_vk_DestroyInstance()
374 vk_instance_finish(&instance->vk); in gfxstream_vk_DestroyInstance()
375 vk_free(&instance->vk.alloc, instance); in gfxstream_vk_DestroyInstance()
439 pAllocator ?: &gfxstream_physicalDevice->instance->vk.alloc; in gfxstream_vk_CreateDevice()
600 vk_icdGetInstanceProcAddr(VkInstance instance, const char* pName);
603 vk_icdGetInstanceProcAddr(VkInstance instance, const char* pName) { in vk_icdGetInstanceProcAddr() argument
604 return gfxstream_vk_GetInstanceProcAddr(instance, pName); in vk_icdGetInstanceProcAddr()
626 VK_FROM_HANDLE(gfxstream_vk_instance, instance, _instance); in vk_icdGetPhysicalDeviceProcAddr()
628 return vk_instance_get_physical_device_proc_addr(&instance->vk, pName); in vk_icdGetPhysicalDeviceProcAddr()
632 VK_FROM_HANDLE(gfxstream_vk_instance, instance, _instance); in gfxstream_vk_GetInstanceProcAddr()
633 return vk_instance_get_proc_addr(&instance->vk, &gfxstream_vk_instance_entrypoints, pName); in gfxstream_vk_GetInstanceProcAddr()