Skip to content

Commit 8b1ee64

Browse files
committed
GPU (macOS): fix gpu type detection
1 parent b0acf16 commit 8b1ee64

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Bugfixes:
1414
* Silence warnings when building in 32bit machines.
1515
* Create sub folders when writing config file (#690)
1616
* Improve user specific locale detection; fix locale detection in Windows 7 (Locale)
17+
* Fix GPU type detection (GPU, macOS)
1718

1819
# 2.6.0
1920

src/detection/gpu/gpu_apple.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
else if ([device supportsFamily:MTLGPUFamilyCommon1])
3333
ffStrbufSetStatic(&gpu->platformApi, "Metal Common 1");
3434

35-
if (gpu->type == device.hasUnifiedMemory)
35+
if (device.hasUnifiedMemory)
3636
{
3737
gpu->type = FF_GPU_TYPE_INTEGRATED;
3838
gpu->shared.total = device.recommendedMaxWorkingSetSize;

0 commit comments

Comments
 (0)