Skip to content

Commit ab37216

Browse files
committed
GPU (Windows): logs driver-specific detection error message
1 parent 57440a7 commit ab37216

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/detection/gpu/gpu_windows.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FFlist*
298298
if (options->driverSpecific && getDriverSpecificDetectionFn(gpu->vendor.chars, &detectFn, &dllName))
299299
{
300300
FF_DEBUG("Calling driver-specific detection function for vendor: %s, DLL: %s", gpu->vendor.chars, dllName);
301-
detectFn(
301+
const char* error = detectFn(
302302
&(FFGpuDriverCondition) {
303303
.type = (deviceId > 0 ? FF_GPU_DRIVER_CONDITION_TYPE_DEVICE_ID : 0)
304304
| (adapterLuid > 0 ? FF_GPU_DRIVER_CONDITION_TYPE_LUID : 0)
@@ -331,7 +331,7 @@ const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FFlist*
331331
},
332332
dllName
333333
);
334-
FF_DEBUG("Driver-specific detection completed");
334+
FF_DEBUG("Driver-specific detection completed: %s", error ?: "Success");
335335
}
336336
else if (options->driverSpecific)
337337
{

0 commit comments

Comments
 (0)