Skip to main content

improve_amd_gpu_name

Function improve_amd_gpu_name 

Source
pub fn improve_amd_gpu_name(name: &str) -> String
Expand description

Refines AMD GPU names by mapping codenames to marketing names.

Fallback only: on Linux, [lookup_amdgpu_ids] is consulted first — it resolves the exact marketing name from the device and revision, which this table cannot (e.g. Strix Halo 1586 is an 8040S, 8050S, or 8060S depending on revision).

Matching is first-substring-wins, so more specific codenames MUST come before their prefixes: “Strix Halo” before “Strix” (a 1586 “Strix Halo […]” pci.ids name once matched the “Strix” entry and was mislabeled as the Strix Point 880M/890M).