Skip to content

Commit 77fbfd3

Browse files
committed
GPU (Windows): detect GPU type with AMD driver
Ref: #1032
1 parent 63cdc47 commit 77fbfd3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/detection/gpu/gpu_amd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,8 @@ const char* ffDetectAmdGpuInfo(const FFGpuDriverCondition* cond, FFGpuDriverResu
6363
if (result.frequency)
6464
*result.frequency = device->coreClock / 1000.; // Maximum frequency
6565

66+
if (result.type)
67+
*result.type = device->isAPU ? FF_GPU_TYPE_INTEGRATED : FF_GPU_TYPE_DISCRETE;
68+
6669
return NULL;
6770
}

0 commit comments

Comments
 (0)