GPU (Linux): fix GPU driver detection

Regression of e5a04ee814

Fix #1084
This commit is contained in:
Carter Li
2024-07-11 08:59:07 +08:00
parent d9f084894e
commit 48bb38ca85
+1
View File
@@ -198,6 +198,7 @@ static const char* detectPci(const FFGPUOptions* options, FFlist* gpus, FFstrbuf
if (!ffStrbufStartsWithC(buffer, '1'))
return "GPU disabled";
}
ffStrbufSubstrBefore(deviceDir, drmDirPathLength);
FFGPUResult* gpu = (FFGPUResult*)ffListAdd(gpus);
ffStrbufInitStatic(&gpu->vendor, ffGetGPUVendorString((uint16_t) vendorId));