GPU (BSD): improve type detection for Intel integrated GPUs

This commit is contained in:
李通洲
2024-08-05 10:07:17 +08:00
parent b2cc5c4f04
commit 6ca65b9166
+4
View File
@@ -112,6 +112,10 @@ const char* ffDetectGPUImpl(const FFGPUOptions* options, FFlist* gpus)
if (ffStrbufStartsWithIgnCaseS(&gpu->name, "MTT "))
gpu->type = FF_GPU_TYPE_DISCRETE;
}
else if (gpu->vendor.chars == FF_GPU_VENDOR_NAME_INTEL)
{
gpu->type = ffStrbufStartsWithIgnCaseS(&gpu->name, "Arc ") ? FF_GPU_TYPE_DISCRETE : FF_GPU_TYPE_INTEGRATED;
}
}
}