[v0.11] Do not show error message when there is no Intel iGPU
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user