Skip to content

Commit 6ca65b9

Browse files
committed
GPU (BSD): improve type detection for Intel integrated GPUs
1 parent b2cc5c4 commit 6ca65b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/detection/gpu/gpu_bsd.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ const char* ffDetectGPUImpl(const FFGPUOptions* options, FFlist* gpus)
112112
if (ffStrbufStartsWithIgnCaseS(&gpu->name, "MTT "))
113113
gpu->type = FF_GPU_TYPE_DISCRETE;
114114
}
115+
else if (gpu->vendor.chars == FF_GPU_VENDOR_NAME_INTEL)
116+
{
117+
gpu->type = ffStrbufStartsWithIgnCaseS(&gpu->name, "Arc ") ? FF_GPU_TYPE_DISCRETE : FF_GPU_TYPE_INTEGRATED;
118+
}
115119
}
116120
}
117121

0 commit comments

Comments
 (0)