Don't assume single render device is D128 (#14091)

This commit is contained in:
Nicolas Mowen 2024-10-01 07:27:41 -06:00 committed by GitHub
parent fafe5623d1
commit 594ca3a04b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ class LibvaGpuSelector:
devices = list(filter(lambda d: d.startswith("render"), os.listdir("/dev/dri")))
if len(devices) < 2:
self._selected_gpu = "/dev/dri/renderD128"
self._selected_gpu = devices[0]
return self._selected_gpu
for device in devices: