Fix issue #802
authorMark Young <marky@lunarg.com>
Mon, 24 Jan 2022 16:34:29 +0000 (09:34 -0700)
committerMark Young <marky@lunarg.com>
Mon, 24 Jan 2022 16:43:55 +0000 (09:43 -0700)
The loader assumed if Vulkan 1.1 is supported, then the PCI bus extension
must automatically be supported.  This was a mistake as that extension is
not part of core.

loader/loader_linux.c

index 86fcae236ac82a8f6d754af6c30266eedb478cb7..ff82c9c39eb94f01c2a77b05ec2d69b1036edbea 100644 (file)
@@ -270,7 +270,6 @@ VkResult linux_read_sorted_physical_devices(struct loader_instance *inst, uint32
 
             bool device_is_1_1_capable =
                 VK_API_VERSION_MAJOR(dev_props.apiVersion) == 1 && VK_API_VERSION_MINOR(dev_props.apiVersion) >= 1;
-            sorted_device_info[index].has_pci_bus_info = device_is_1_1_capable;
             if (!sorted_device_info[index].has_pci_bus_info) {
                 uint32_t ext_count;
                 icd_term->dispatch.EnumerateDeviceExtensionProperties(sorted_device_info[index].physical_device, NULL, &ext_count,
@@ -374,7 +373,6 @@ VkResult linux_read_sorted_physical_device_groups(struct loader_instance *inst,
 
             bool device_is_1_1_capable =
                 VK_API_VERSION_MAJOR(dev_props.apiVersion) == 1 && VK_API_VERSION_MINOR(dev_props.apiVersion) >= 1;
-            sorted_group_term[group].internal_device_info[gpu].has_pci_bus_info = device_is_1_1_capable;
             if (!sorted_group_term[group].internal_device_info[gpu].has_pci_bus_info) {
                 uint32_t ext_count;
                 icd_term->dispatch.EnumerateDeviceExtensionProperties(