libdrm: drmCheckModesettingSupported: fix for FreeBSD

FreeBSD only support up to 10 GPUs not 16.

Signed-off-by: Emmanuel Vadot <manu@FreeBSD.org>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
main
Emmanuel Vadot 2020-01-24 20:43:05 +01:00
parent 24e68525dc
commit bb584b8fd2
1 changed files with 1 additions and 1 deletions

View File

@ -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);