Lines Matching defs:instance

139    struct dzn_instance *instance = container_of(pdev->vk.instance, struct dzn_instance, vk);
151 vk_free(&instance->vk.alloc, pdev);
155 dzn_instance_destroy(struct dzn_instance *instance, const VkAllocationCallbacks *alloc)
157 if (!instance)
161 if (instance->dxil_validator)
162 dxil_destroy_validator(instance->dxil_validator);
166 &instance->physical_devices, link) {
170 vk_instance_finish(&instance->vk);
171 vk_free2(vk_default_allocator(), alloc, instance);
179 struct dzn_instance *instance =
180 vk_zalloc2(vk_default_allocator(), pAllocator, sizeof(*instance), 8,
182 if (!instance)
191 vk_instance_init(&instance->vk, &instance_extensions,
195 vk_free2(vk_default_allocator(), pAllocator, instance);
199 list_inithead(&instance->physical_devices);
200 instance->physical_devices_enumerated = false;
201 instance->debug_flags =
205 if (instance->debug_flags & DZN_DEBUG_DEBUGGER) {
212 if (instance->debug_flags & DZN_DEBUG_REDIRECTS) {
225 instance->dxil_validator = dxil_create_validator(NULL);
226 missing_validator = !instance->dxil_validator;
229 instance->d3d12.serialize_root_sig = d3d12_get_serialize_root_sig();
232 !instance->d3d12.serialize_root_sig) {
233 dzn_instance_destroy(instance, pAllocator);
237 if (instance->debug_flags & DZN_DEBUG_D3D12)
239 if (instance->debug_flags & DZN_DEBUG_GBV)
242 instance->sync_binary_type = vk_sync_binary_get_type(&dzn_sync_type);
244 *out = dzn_instance_to_handle(instance);
257 dzn_DestroyInstance(VkInstance instance,
260 dzn_instance_destroy(dzn_instance_from_handle(instance), pAllocator);
309 dzn_physical_device_create(struct dzn_instance *instance,
314 vk_zalloc(&instance->vk.alloc, sizeof(*pdev), 8,
318 return vk_error(instance, VK_ERROR_OUT_OF_HOST_MEMORY);
329 vk_physical_device_init(&pdev->vk, &instance->vk,
333 vk_free(&instance->vk.alloc, pdev);
341 list_addtail(&pdev->link, &instance->physical_devices);
347 pdev->sync_types[num_sync_types++] = &instance->sync_binary_type.sync;
572 struct dzn_instance *instance = container_of(pdev->vk.instance, struct dzn_instance, vk);
576 pdev->dev = d3d12_create_device(pdev->adapter, !instance->dxil_validator);
1007 dzn_instance_add_physical_device(struct dzn_instance *instance,
1011 if ((instance->debug_flags & DZN_DEBUG_WARP) &&
1015 return dzn_physical_device_create(instance, adapter, desc);
1023 VK_FROM_HANDLE(dzn_instance, instance, inst);
1025 if (!instance->physical_devices_enumerated) {
1026 VkResult result = dzn_enumerate_physical_devices_dxcore(instance);
1029 result = dzn_enumerate_physical_devices_dxgi(instance);
1038 list_for_each_entry(struct dzn_physical_device, pdev, &instance->physical_devices, link) {
1043 instance->physical_devices_enumerated = true;
1284 VK_FROM_HANDLE(dzn_instance, instance, _instance);
1285 return vk_instance_get_proc_addr(&instance->vk,
1300 vk_icdGetInstanceProcAddr(VkInstance instance,
1304 vk_icdGetInstanceProcAddr(VkInstance instance,
1307 return dzn_GetInstanceProcAddr(instance, pName);
1321 VK_FROM_HANDLE(dzn_instance, instance, _instance);
1322 return vk_instance_get_physical_device_proc_addr(&instance->vk, pName);
1890 return vk_error(device->vk.physical->instance, VK_ERROR_INITIALIZATION_FAILED);
1897 return vk_error(device->vk.physical->instance, VK_ERROR_INITIALIZATION_FAILED);
1985 struct dzn_instance *instance =
1986 container_of(device->vk.physical->instance, struct dzn_instance, vk);
2001 vk_free2(&instance->vk.alloc, pAllocator, device);
2021 struct dzn_instance *instance = container_of(pdev->vk.instance, struct dzn_instance, vk);
2033 if (!vk_multialloc_zalloc2(&ma, &instance->vk.alloc, pAllocator,
2136 struct dzn_instance *instance =
2137 container_of(device->vk.physical->instance, struct dzn_instance, vk);
2141 if (FAILED(instance->d3d12.serialize_root_sig(desc,
2143 if (instance->debug_flags & DZN_DEBUG_SIG) {