From bb584b8fd24e956d68b8f040a5c6cc0190980903 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Fri, 24 Jan 2020 20:43:05 +0100 Subject: [PATCH] libdrm: drmCheckModesettingSupported: fix for FreeBSD FreeBSD only support up to 10 GPUs not 16. Signed-off-by: Emmanuel Vadot Reviewed-by: Eric Engestrom Reviewed-by: Emil Velikov --- xf86drmMode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drmMode.c b/xf86drmMode.c index 6fa2e83f..4052e031 100644 --- a/xf86drmMode.c +++ b/xf86drmMode.c @@ -806,7 +806,7 @@ drm_public int drmCheckModesettingSupported(const char *busid) size_t len; /* How many GPUs do we expect in the machine ? */ - for (i = 0; i < 16; i++) { + for (i = 0; i < 10; i++) { snprintf(oid, sizeof(oid), "hw.dri.%d.busid", i); len = sizeof(sbusid); ret = sysctlbyname(oid, sbusid, &len, NULL, 0);