Skip to content

Commit 7446828

Browse files
committed
GPU (macOS): don't set platformApi to Metal when Metal API is not used
1 parent 0b37ace commit 7446828

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/detection/gpu/gpu_apple.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#include "gpu.h"
2-
#include "common/library.h"
3-
#include "detection/cpu/cpu.h"
42
#include "util/apple/cf_helpers.h"
53
#include "util/apple/smc_temps.h"
64

@@ -109,7 +107,7 @@ const char* ffDetectGPUImpl(const FFGPUOptions* options, FFlist* gpus)
109107
gpu->type = FF_GPU_TYPE_UNKNOWN;
110108
gpu->frequency = FF_GPU_FREQUENCY_UNSET;
111109
IORegistryEntryGetRegistryEntryID(registryEntry, &gpu->deviceId);
112-
ffStrbufInitStatic(&gpu->platformApi, "Metal");
110+
ffStrbufInitStatic(&gpu->platformApi, "IOKit");
113111

114112
ffStrbufInit(&gpu->driver); // Ok for both Apple and Intel
115113
ffCfDictGetString(properties, CFSTR("CFBundleIdentifier"), &gpu->driver);

0 commit comments

Comments
 (0)