Lines Matching defs:index
222 "linux_env_var_default_device: Found default at index %u \'%s\'", i,
252 uint32_t index = 0;
258 sorted_device_info[index].physical_device = icd_devices[icd_idx].physical_devices[phys_dev];
259 sorted_device_info[index].icd_index = icd_idx;
260 sorted_device_info[index].icd_term = icd_term;
261 sorted_device_info[index].has_pci_bus_info = false;
263 icd_term->dispatch.GetPhysicalDeviceProperties(sorted_device_info[index].physical_device, &dev_props);
264 sorted_device_info[index].device_type = dev_props.deviceType;
265 strncpy(sorted_device_info[index].device_name, dev_props.deviceName, VK_MAX_PHYSICAL_DEVICE_NAME_SIZE);
266 sorted_device_info[index].vendor_id = dev_props.vendorID;
267 sorted_device_info[index].device_id = dev_props.deviceID;
271 if (!sorted_device_info[index].has_pci_bus_info) {
273 icd_term->dispatch.EnumerateDeviceExtensionProperties(sorted_device_info[index].physical_device, NULL, &ext_count,
282 icd_term->dispatch.EnumerateDeviceExtensionProperties(sorted_device_info[index].physical_device, NULL,
286 sorted_device_info[index].has_pci_bus_info = true;
293 if (sorted_device_info[index].has_pci_bus_info) {
306 GetPhysDevProps2(sorted_device_info[index].physical_device, &dev_props2);
307 sorted_device_info[index].pci_domain = pci_props.pciDomain;
308 sorted_device_info[index].pci_bus = pci_props.pciBus;
309 sorted_device_info[index].pci_device = pci_props.pciDevice;
310 sorted_device_info[index].pci_function = pci_props.pciFunction;
312 sorted_device_info[index].has_pci_bus_info = false;
315 loader_log(inst, VULKAN_LOADER_INFO_BIT | VULKAN_LOADER_DRIVER_BIT, 0, " [%u] %s", index,
316 sorted_device_info[index].device_name);
317 index++;
327 // If we have a selected index, add that first.