From 884fd097c61933bd441ed3ea65c8d3f4797c3bf8 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Fri, 2 Aug 2024 14:13:33 +0800 Subject: [PATCH] GPU (Linux): fix compiling (2) --- src/detection/gpu/gpu_linux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/detection/gpu/gpu_linux.c b/src/detection/gpu/gpu_linux.c index 91ac598eb..b132d282a 100644 --- a/src/detection/gpu/gpu_linux.c +++ b/src/detection/gpu/gpu_linux.c @@ -384,6 +384,8 @@ static const char* detectPci(const FFGPUOptions* options, FFlist* gpus, FFstrbuf return NULL; } +#if __aarch64__ + FF_MAYBE_UNUSED static const char* detectAsahi(FFlist* gpus, FFstrbuf* buffer, FFstrbuf* drmDir, const char* drmKey) { uint32_t index = ffStrbufFirstIndexS(buffer, "apple,agx-t"); @@ -427,6 +429,7 @@ FF_MAYBE_UNUSED static const char* detectAsahi(FFlist* gpus, FFstrbuf* buffer, F return NULL; } +#endif static const char* drmDetectGPUs(const FFGPUOptions* options, FFlist* gpus) {