From 77fbfd3fbd2ddc49830cc93e9daf5c0e1a3f1145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 22 Jun 2024 08:10:52 +0800 Subject: [PATCH] GPU (Windows): detect GPU type with AMD driver Ref: #1032 --- src/detection/gpu/gpu_amd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/detection/gpu/gpu_amd.c b/src/detection/gpu/gpu_amd.c index 3efd23c40..0b367acca 100644 --- a/src/detection/gpu/gpu_amd.c +++ b/src/detection/gpu/gpu_amd.c @@ -63,5 +63,8 @@ const char* ffDetectAmdGpuInfo(const FFGpuDriverCondition* cond, FFGpuDriverResu if (result.frequency) *result.frequency = device->coreClock / 1000.; // Maximum frequency + if (result.type) + *result.type = device->isAPU ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE; + return NULL; }