GPU: guard GPU frequency behind driverSpecific

This commit is contained in:
李通洲
2024-06-28 22:17:37 +08:00
parent 27a1d9f8c6
commit 19590003e1
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ const char* ffGPUDetectByDirectX(FF_MAYBE_UNUSED const FFGPUOptions* options, FF
.memory = options->driverSpecific ? &gpu->dedicated : NULL,
.coreCount = options->driverSpecific ? (uint32_t*) &gpu->coreCount : NULL,
.type = &gpu->type,
.frequency = &gpu->frequency,
.frequency = options->driverSpecific ? &gpu->frequency : NULL,
}, "/usr/lib/wsl/lib/libnvidia-ml.so");
}
}