From 3d36852f9d7c42934c9af29664c3498cc8753f24 Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Fri, 31 Mar 2023 16:12:22 +0200 Subject: [PATCH] [v0.25] Fix for PCI class 0302 can also be responsible for GPUs (like in AWS) --- src/common/pci.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/pci.cpp b/src/common/pci.cpp index aaf3264..e2c1d67 100644 --- a/src/common/pci.cpp +++ b/src/common/pci.cpp @@ -23,7 +23,7 @@ void debug_devices(struct pci_dev *devices) { bool pciutils_is_vendor_id_present(struct pci_dev *devices, int id) { for(struct pci_dev *dev=devices; dev != NULL; dev=dev->next) { - if(dev->vendor_id == id && dev->device_class == CLASS_VGA_CONTROLLER) { + if(dev->vendor_id == id && (dev->device_class == CLASS_VGA_CONTROLLER || dev->device_class == CLASS_3D_CONTROLLER)) { return true; } }