Skip to content

Commit f866c90

Browse files
committed
GPU: defaults to --gpu-detection-method pci on x86 to detect disabled gpus
1 parent a61a956 commit f866c90

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/modules/gpu/gpu.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,13 @@ void ffInitGPUOptions(FFGPUOptions* options)
421421
ffOptionInitModuleArg(&options->moduleArgs, "󰾲");
422422

423423
options->driverSpecific = false;
424-
options->detectionMethod = FF_GPU_DETECTION_METHOD_AUTO;
424+
options->detectionMethod =
425+
#if defined(__x86_64__) || defined(__i386__)
426+
FF_GPU_DETECTION_METHOD_PCI
427+
#else
428+
FF_GPU_DETECTION_METHOD_AUTO
429+
#endif
430+
;
425431
options->temp = false;
426432
options->hideType = FF_GPU_TYPE_UNKNOWN;
427433
options->tempConfig = (FFColorRangeConfig) { 60, 80 };

0 commit comments

Comments
 (0)