GPU (General): fix GPU device type detection

This commit is contained in:
李通洲
2025-03-25 11:03:28 +08:00
parent c77fb71a69
commit e474a47fad
+1 -3
View File
@@ -47,9 +47,7 @@ const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FFlist*
ffGPUQueryAmdGpuName(dev->device_id, dev->revision, gpu);
if (gpu->name.length == 0)
{
ffGPUFillVendorAndName((dev->device_class >> 8) & 8, dev->vendor_id, dev->device_id, gpu);
}
ffGPUFillVendorAndName((dev->device_class >> 8) & 0xFF, dev->vendor_id, dev->device_id, gpu);
}
ffpci_system_cleanup();