From 8b1ee64a3e2de8a87e94bab405ae8a9d5e355684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 20 Jan 2024 20:57:33 +0800 Subject: [PATCH] GPU (macOS): fix gpu type detection --- CHANGELOG.md | 1 + src/detection/gpu/gpu_apple.m | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2f5ba089..9c26213e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Bugfixes: * Silence warnings when building in 32bit machines. * Create sub folders when writing config file (#690) * Improve user specific locale detection; fix locale detection in Windows 7 (Locale) +* Fix GPU type detection (GPU, macOS) # 2.6.0 diff --git a/src/detection/gpu/gpu_apple.m b/src/detection/gpu/gpu_apple.m index 0323fdaff..85d951724 100644 --- a/src/detection/gpu/gpu_apple.m +++ b/src/detection/gpu/gpu_apple.m @@ -32,7 +32,7 @@ const char* ffGpuDetectMetal(FFlist* gpus) else if ([device supportsFamily:MTLGPUFamilyCommon1]) ffStrbufSetStatic(&gpu->platformApi, "Metal Common 1"); - if (gpu->type == device.hasUnifiedMemory) + if (device.hasUnifiedMemory) { gpu->type = FF_GPU_TYPE_INTEGRATED; gpu->shared.total = device.recommendedMaxWorkingSetSize;