mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-23 07:02:48 +03:00
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:
@@ -261,7 +261,7 @@ def is_vaapi_amd_driver() -> bool:
|
||||
output = p.stdout.decode("unicode_escape").split("\n")
|
||||
|
||||
# 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:
|
||||
|
||||
Reference in New Issue
Block a user