Skip to content

Commit 5381395

Browse files
committed
GPU (macOS): update how integrated GPUs are detected
1 parent 51796de commit 5381395

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
@@ -65,7 +65,7 @@
6565
else if ([device supportsFamily:MTLGPUFamilyCommon1])
6666
ffStrbufSetStatic(&gpu->platformApi, "Metal Common 1");
6767

68-
gpu->type = device.hasUnifiedMemory ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE;
68+
gpu->type = device.location == MTLDeviceLocationBuiltIn ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE;
6969
gpu->index = (uint32_t) device.locationNumber;
7070
#endif
7171
}

0 commit comments

Comments
 (0)