diff --git a/src/detection/gpu/gpu_apple.m b/src/detection/gpu/gpu_apple.m index 951d25469..0323fdaff 100644 --- a/src/detection/gpu/gpu_apple.m +++ b/src/detection/gpu/gpu_apple.m @@ -32,7 +32,18 @@ const char* ffGpuDetectMetal(FFlist* gpus) else if ([device supportsFamily:MTLGPUFamilyCommon1]) ffStrbufSetStatic(&gpu->platformApi, "Metal Common 1"); - gpu->type = device.hasUnifiedMemory ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE; + if (gpu->type == device.hasUnifiedMemory) + { + gpu->type = FF_GPU_TYPE_INTEGRATED; + gpu->shared.total = device.recommendedMaxWorkingSetSize; + gpu->shared.used = device.currentAllocatedSize; + } + else + { + gpu->type = FF_GPU_TYPE_DISCRETE; + gpu->dedicated.total = device.recommendedMaxWorkingSetSize; + gpu->dedicated.used = device.currentAllocatedSize; + } } return NULL; }