GPU: detects PCIe speed only in driverSpecific mode

Fixes #2419
This commit is contained in:
Carter Li
2026-06-27 08:13:00 +08:00
committed by 李通洲
parent e3dfeeb8db
commit a3184601dc
3 changed files with 82 additions and 66 deletions
+3
View File
@@ -64,6 +64,9 @@ typedef struct FFGPUResult {
uint64_t deviceId;
} FFGPUResult;
static_assert(sizeof(((FFGPUResult*) NULL)->pcieSpeed) == 8, "pcieSpeed is not 8 bytes");
static_assert(sizeof(((FFGPUResult*) NULL)->psMax) == 4, "psMax has padding");
const char* ffDetectGPU(const FFGPUOptions* options, FFlist* result);
const char* ffDetectGPUImpl(const FFGPUOptions* options, FFlist* gpus);