GPU: use driver reported adapter name if available

This commit is contained in:
Carter Li
2024-09-27 10:58:35 +08:00
committed by 李通洲
parent 5058a93428
commit 842ba9fd4e
5 changed files with 30 additions and 21 deletions
+3
View File
@@ -68,5 +68,8 @@ const char* ffDetectAmdGpuInfo(const FFGpuDriverCondition* cond, FFGpuDriverResu
if (result.index)
*result.type = (uint32_t) device->adlAdapterIndex;
if (result.name)
ffStrbufSetS(result.name, device->adapterString);
return NULL;
}