overlay: init_gpu: bring back checkNvidia

This commit is contained in:
FlightlessMango 2023-04-27 09:31:02 +02:00
parent ddfc32211f
commit 7ea1f33fa1

View File

@ -700,6 +700,11 @@ void init_gpu_stats(uint32_t& vendorID, uint32_t reported_deviceID, overlay_para
}
#ifdef __linux__
// NVIDIA or Intel but maybe has Optimus
if (vendorID == 0x8086 || vendorID == 0x10de)
if(checkNvidia(pci_dev))
vendorID = 0x10de;
string path;
string drm = "/sys/class/drm/";