GPU (Windows): detect GPU type with AMD driver

Ref: #1032
This commit is contained in:
李通洲
2024-06-22 08:10:52 +08:00
parent 63cdc47d18
commit 77fbfd3fbd
+3
View File
@@ -63,5 +63,8 @@ const char* ffDetectAmdGpuInfo(const FFGpuDriverCondition* cond, FFGpuDriverResu
if (result.frequency)
*result.frequency = device->coreClock / 1000.; // Maximum frequency
if (result.type)
*result.type = device->isAPU ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE;
return NULL;
}