From f866c906870ea340c324ce56bcb090dfbbc4bf47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 8 Aug 2024 16:23:58 +0800 Subject: [PATCH] GPU: defaults to `--gpu-detection-method pci` on x86 to detect disabled gpus --- src/modules/gpu/gpu.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/modules/gpu/gpu.c b/src/modules/gpu/gpu.c index 0765c8af1..3115f966e 100644 --- a/src/modules/gpu/gpu.c +++ b/src/modules/gpu/gpu.c @@ -421,7 +421,13 @@ void ffInitGPUOptions(FFGPUOptions* options) ffOptionInitModuleArg(&options->moduleArgs, "󰾲"); options->driverSpecific = false; - options->detectionMethod = FF_GPU_DETECTION_METHOD_AUTO; + options->detectionMethod = + #if defined(__x86_64__) || defined(__i386__) + FF_GPU_DETECTION_METHOD_PCI + #else + FF_GPU_DETECTION_METHOD_AUTO + #endif + ; options->temp = false; options->hideType = FF_GPU_TYPE_UNKNOWN; options->tempConfig = (FFColorRangeConfig) { 60, 80 };