pub fn lookup_amdgpu_ids_in(
content: &str,
device_id: &str,
revision_id: &str,
) -> Option<String>Expand description
Looks up an AMD GPU’s exact marketing name in libdrm’s amdgpu.ids database content.
The database is keyed by (device id, revision id), which is what disambiguates
same-device variants that pci.ids lumps together (Strix Halo 1586 rev C1 is the
“AMD Radeon 8060S Graphics”, rev C2 the 8050S, rev D5 the 8040S). This mirrors how
fastfetch resolves AMD names on Linux.
Format (after # comments and a bare version line): device_id,\trevision_id,\tname.
IDs are bare uppercase hex; sysfs-style 0x-prefixed lowercase input is accepted.
Malformed lines are skipped. The name is the remainder after the second comma, so
commas in product names are safe.