Skip to content

Commit 442d58b

Browse files
committed
Revert "GPU (macOS): update how integrated GPUs are detected"
This reverts commit 5381395.
1 parent 4d377b9 commit 442d58b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/gpu/gpu_apple.m

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

74-
gpu->type = device.location == MTLDeviceLocationBuiltIn ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE;
74+
gpu->type = device.hasUnifiedMemory ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE;
7575
gpu->index = (uint32_t) device.locationNumber;
7676

7777
if (device.hasUnifiedMemory && device.recommendedMaxWorkingSetSize > 0)

0 commit comments

Comments
 (0)