From 121e9b911e85afc7c3aee4082155944ead0a68d9 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Fri, 2 Aug 2024 13:48:02 +0800 Subject: [PATCH] GPU (Windows): fix bug that assuming pci bus id > 0 --- src/detection/gpu/gpu_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/gpu/gpu_windows.c b/src/detection/gpu/gpu_windows.c index 9df0ba3a7..111aced8e 100644 --- a/src/detection/gpu/gpu_windows.c +++ b/src/detection/gpu/gpu_windows.c @@ -183,7 +183,7 @@ const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FFlist* &(FFGpuDriverCondition) { .type = FF_GPU_DRIVER_CONDITION_TYPE_DEVICE_ID | FF_GPU_DRIVER_CONDITION_TYPE_LUID - | (bus > 0 ? FF_GPU_DRIVER_CONDITION_TYPE_BUS_ID : 0), + | (bus >= 0 ? FF_GPU_DRIVER_CONDITION_TYPE_BUS_ID : 0), .pciDeviceId = { .deviceId = deviceId, .vendorId = vendorId,