Skip to content

Commit 48bb38c

Browse files
committed
GPU (Linux): fix GPU driver detection
Regression of e5a04ee Fix #1084
1 parent d9f0848 commit 48bb38c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/detection/gpu/gpu_linux.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ static const char* detectPci(const FFGPUOptions* options, FFlist* gpus, FFstrbuf
198198
if (!ffStrbufStartsWithC(buffer, '1'))
199199
return "GPU disabled";
200200
}
201+
ffStrbufSubstrBefore(deviceDir, drmDirPathLength);
201202

202203
FFGPUResult* gpu = (FFGPUResult*)ffListAdd(gpus);
203204
ffStrbufInitStatic(&gpu->vendor, ffGetGPUVendorString((uint16_t) vendorId));

0 commit comments

Comments
 (0)