From 1df129083b2cd8b8336752afe95209348cae22f5 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Mon, 30 Sep 2024 15:02:49 +0800 Subject: [PATCH] GPU (Linux): add a special case for brcm --- src/detection/gpu/gpu_linux.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/detection/gpu/gpu_linux.c b/src/detection/gpu/gpu_linux.c index 2392a09ba..45fbdfef0 100644 --- a/src/detection/gpu/gpu_linux.c +++ b/src/detection/gpu/gpu_linux.c @@ -663,8 +663,13 @@ static const char* detectOf(FFlist* gpus, FFstrbuf* buffer, FFstrbuf* drmDir, co } if (!gpu->vendor.length && name) { - compatible[0] = (char) toupper(compatible[0]); - ffStrbufSetS(&gpu->vendor, compatible); + if (ffStrEquals(compatible, "brcm")) + ffStrbufSetStatic(&gpu->vendor, "Broadcom"); // Raspberry Pi + else + { + ffStrbufSetS(&gpu->vendor, compatible); + gpu->vendor.chars[0] = (char) toupper(compatible[0]); + } } return NULL;