From 50da7cabd61c6c7e7930375de4920b93c41aea07 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sat, 23 Mar 2024 17:30:13 +0800 Subject: [PATCH] GPU (Apple): always use metal to detect vmem --- src/detection/gpu/gpu_apple.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/detection/gpu/gpu_apple.c b/src/detection/gpu/gpu_apple.c index 6113dfce6..6bc0ee48e 100644 --- a/src/detection/gpu/gpu_apple.c +++ b/src/detection/gpu/gpu_apple.c @@ -63,10 +63,6 @@ const char* ffDetectGPUImpl(const FFGPUOptions* options, FFlist* gpus) ffStrbufInit(&gpu->driver); // Ok for both Apple and Intel ffCfDictGetString(properties, CFSTR("CFBundleIdentifier"), &gpu->driver); - int vram; // Supported on Intel - if(!ffCfDictGetInt(properties, CFSTR("VRAM,totalMB"), &vram)) - gpu->dedicated.total = (uint64_t) vram * 1024 * 1024; - if(ffCfDictGetInt(properties, CFSTR("gpu-core-count"), &gpu->coreCount)) // For Apple gpu->coreCount = FF_GPU_CORE_COUNT_UNSET;