GPU: code cleanups and bug fixes

This commit is contained in:
Carter Li
2026-07-09 20:03:18 +08:00
parent 0495c47909
commit 55e674e1cb
7 changed files with 24 additions and 21 deletions
+2 -3
View File
@@ -72,7 +72,6 @@ static const char* drmGetPciinfo(int drmfd, const char* drmId, struct drm_pciinf
};
if (ioctl(pcifd, PCIOCGETCONF, &pcio) < 0) {
perror("ioctl");
return "ioctl(pcifd, PCIOCGETCONF, &pc) failed";
}
@@ -188,7 +187,7 @@ const char* ffGPUDetectByDrmBSD(const FFGPUOptions* options, FFlist* gpus) {
}
}
ffGPUFillVendorByDeviceName(gpu);
ffGPUDetectTypeByVendorAndName(gpu);
}
return NULL;
@@ -201,4 +200,4 @@ const char* ffGPUDetectByDrmBSD(const FFGPUOptions* options, FFlist* gpus) {
return "Fastfetch was built without libdrm support";
}
#endif // __FreeBSD__ || __OpenBSD__
#endif // FF_HAVE_DRM