Skip to content

Commit 8f1f160

Browse files
committed
GPU (Linux): improve result for unknown Apple SOC
1 parent 611d5f9 commit 8f1f160

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/detection/gpu/gpu_linux.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,8 @@ FF_MAYBE_UNUSED static const char* detectAsahi(FFlist* gpus, FFstrbuf* buffer, F
407407
FFGPUResult* gpu = (FFGPUResult*)ffListAdd(gpus);
408408
gpu->deviceId = strtoul(buffer->chars + index, NULL, 10);
409409
ffStrbufInitStatic(&gpu->name, ffCPUAppleCodeToName((uint32_t) gpu->deviceId));
410+
if (!gpu->name.length)
411+
ffStrbufAppendF(&gpu->name, "Apple Silicon T%u", (uint32_t) gpu->deviceId);
410412
ffStrbufInitStatic(&gpu->vendor, FF_GPU_VENDOR_NAME_APPLE);
411413
ffStrbufInit(&gpu->driver);
412414
ffStrbufInitF(&gpu->platformApi, "DRM (%s)", drmKey);

0 commit comments

Comments
 (0)