From e42dfe63c31b913edb88040481dbba7ff13cc768 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sat, 10 Aug 2024 12:13:21 +0800 Subject: [PATCH] GPU (Linux): fix bad Intel Arc GPU name Fix #1177 --- src/detection/gpu/gpu_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/gpu/gpu_linux.c b/src/detection/gpu/gpu_linux.c index f469d08cc..f111f3de6 100644 --- a/src/detection/gpu/gpu_linux.c +++ b/src/detection/gpu/gpu_linux.c @@ -205,7 +205,7 @@ static void pciDetectIntelSpecific(FFGPUResult* gpu, FFstrbuf* pciDir, FFstrbuf* // https://patchwork.kernel.org/project/intel-gfx/patch/1422039866-11572-3-git-send-email-ville.syrjala@linux.intel.com/ if (ffStrbufStartsWithS(&gpu->name, "Intel ")) - ffStrbufSubstrAfter(&gpu->name, (uint32_t) strlen("Intel ")); + ffStrbufSubstrAfter(&gpu->name, (uint32_t) strlen("Intel")); gpu->type = ffStrbufStartsWithIgnCaseS(&gpu->name, "Arc ") ? FF_GPU_TYPE_DISCRETE : FF_GPU_TYPE_INTEGRATED; if (ffStrbufEqualS(&gpu->driver, "xe"))