Skip to content

Commit e474a47

Browse files
committed
GPU (General): fix GPU device type detection
1 parent c77fb71 commit e474a47

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/detection/gpu/gpu_general.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FFlist*
4747
ffGPUQueryAmdGpuName(dev->device_id, dev->revision, gpu);
4848

4949
if (gpu->name.length == 0)
50-
{
51-
ffGPUFillVendorAndName((dev->device_class >> 8) & 8, dev->vendor_id, dev->device_id, gpu);
52-
}
50+
ffGPUFillVendorAndName((dev->device_class >> 8) & 0xFF, dev->vendor_id, dev->device_id, gpu);
5351
}
5452

5553
ffpci_system_cleanup();

0 commit comments

Comments
 (0)