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
parent
24e68525dc
commit
bb584b8fd2
|
@ -806,7 +806,7 @@ drm_public int drmCheckModesettingSupported(const char *busid)
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
/* How many GPUs do we expect in the machine ? */
|
/* 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);
|
snprintf(oid, sizeof(oid), "hw.dri.%d.busid", i);
|
||||||
len = sizeof(sbusid);
|
len = sizeof(sbusid);
|
||||||
ret = sysctlbyname(oid, sbusid, &len, NULL, 0);
|
ret = sysctlbyname(oid, sbusid, &len, NULL, 0);
|
||||||
|
|
Loading…
Reference in New Issue