From 48bb38ca85e918979f1125ff33fdf7b652182459 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Thu, 11 Jul 2024 08:59:07 +0800 Subject: [PATCH] GPU (Linux): fix GPU driver detection Regression of e5a04ee8144da438054deaeaf4a9f35637479126 Fix #1084 --- src/detection/gpu/gpu_linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/detection/gpu/gpu_linux.c b/src/detection/gpu/gpu_linux.c index 0164f191e..d3e09aebe 100644 --- a/src/detection/gpu/gpu_linux.c +++ b/src/detection/gpu/gpu_linux.c @@ -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));