We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51796de commit 5381395Copy full SHA for 5381395
src/detection/gpu/gpu_apple.m
@@ -65,7 +65,7 @@
65
else if ([device supportsFamily:MTLGPUFamilyCommon1])
66
ffStrbufSetStatic(&gpu->platformApi, "Metal Common 1");
67
68
- gpu->type = device.hasUnifiedMemory ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE;
+ gpu->type = device.location == MTLDeviceLocationBuiltIn ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE;
69
gpu->index = (uint32_t) device.locationNumber;
70
#endif
71
}
0 commit comments