detect all AMD GPUs from vainfo

The vainfo check only matched "AMD Radeon Graphics", so drivers reporting names like "AMD Radeon Vega 8 Graphics", "AMD Radeon RX 6600", "AMD Custom GPU 0405", or older codename strings fell through and their GPU stats were collected as Intel. It now matches Mesa's "for AMD" driver string.
This commit is contained in:
Josh Hawkins
2026-10-22 16:54:46 -05:00
parent 366bab84ac
commit d415be5d93
+1 -1
View File
@@ -261,7 +261,7 @@ def is_vaapi_amd_driver() -> bool:
output = p.stdout.decode("unicode_escape").split("\n") output = p.stdout.decode("unicode_escape").split("\n")
# VA Info will print out the friendly name of the driver # VA Info will print out the friendly name of the driver
return any("AMD Radeon Graphics" in line for line in output) return any(" for AMD " in line for line in output)
def get_amd_gpu_stats() -> dict[str, str] | None: def get_amd_gpu_stats() -> dict[str, str] | None: