Commit 242d79eb by David Stevens Committed by Jonah Ryan-Davis

[M91] Ignore subclass when finding GPU PCI devices

When enumerating PCI devices to find GPUs, only filter on the base class. This allows devices with class PCI_CLASS_DISPLAY_OTHER to be found. Bug: b/178748337 Change-Id: Ia0cd29dddc49a16428da16c1ef1b94040c1221f7 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2817973Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarJonah Ryan-Davis <jonahr@google.com> Commit-Queue: Jonah Ryan-Davis <jonahr@google.com> (cherry picked from commit 0615bbde) Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2833496
parent 83c90f24
...@@ -105,14 +105,9 @@ bool GetPCIDevicesWithLibPCI(std::vector<GPUDeviceInfo> *devices) ...@@ -105,14 +105,9 @@ bool GetPCIDevicesWithLibPCI(std::vector<GPUDeviceInfo> *devices)
pci.FillInfo(device, PCI_FILL_IDENT | PCI_FILL_CLASS); pci.FillInfo(device, PCI_FILL_IDENT | PCI_FILL_CLASS);
// Skip non-GPU devices // Skip non-GPU devices
switch (device->device_class) if (device->device_class >> 8 != PCI_BASE_CLASS_DISPLAY)
{ {
case PCI_CLASS_DISPLAY_VGA: continue;
case PCI_CLASS_DISPLAY_XGA:
case PCI_CLASS_DISPLAY_3D:
break;
default:
continue;
} }
// Skip unknown devices // Skip unknown devices
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment