Skip to content

Commit

Permalink
Treat AMD IGPU as an external GPU due to patch specifics
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Feb 28, 2023
1 parent 6543c90 commit 653ede0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Lilu/Sources/kern_devinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,11 @@ void DeviceInfo::grabDevicesFromPciRoot(IORegistryEntry *pciRoot) {
audioBuiltinAnalog = v.audio;

if (v.video && v.vendor == WIOKit::VendorID::ATIAMD) {
videoBuiltin = v.video;
v.audio = nullptr;

DBGLOG("dev", "marking counterpart video device as gpu at %s", safeString(v.video->getName()));
if (!videoExternal.push_back(v))
SYSLOG("dev", "failed to push video gpu");
}
}
}
Expand Down

0 comments on commit 653ede0

Please sign in to comment.