[v0.11] Do not show error message when there is no Intel iGPU

This commit is contained in:
Dr-Noob
2021-12-18 10:35:51 +01:00
parent 6d4d8b621b
commit bfb9738132
2 changed files with 19 additions and 9 deletions

View File

@@ -18,6 +18,12 @@ struct gpu_info* get_gpu_info_intel() {
struct pci_dev *devices = get_pci_devices_from_pciutils();
gpu->pci = get_pci_from_pciutils(devices, PCI_VENDOR_ID_INTEL);
if(gpu->pci == NULL) {
// No Intel iGPU found in PCI, which means it is not present
return NULL;
}
gpu->arch = get_uarch_from_pci(gpu->pci);
gpu->name = get_name_from_uarch(gpu->arch);
gpu->topo_i = get_topology_info(gpu->arch);