parent
273b280f46
commit
2bad34e024
|
@ -288,11 +288,6 @@ size_t wlr_session_find_gpus(struct wlr_session *session,
|
||||||
return explicit_find_gpus(session, ret_len, ret, explicit);
|
return explicit_find_gpus(session, ret_len, ret, explicit);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __FreeBSD__
|
|
||||||
// XXX: libudev-devd does not return any GPUs (yet?)
|
|
||||||
return explicit_find_gpus(session, ret_len, ret, "/dev/drm/0");
|
|
||||||
#else
|
|
||||||
|
|
||||||
struct udev_enumerate *en = udev_enumerate_new(session->udev);
|
struct udev_enumerate *en = udev_enumerate_new(session->udev);
|
||||||
if (!en) {
|
if (!en) {
|
||||||
wlr_log(WLR_ERROR, "Failed to create udev enumeration");
|
wlr_log(WLR_ERROR, "Failed to create udev enumeration");
|
||||||
|
@ -360,5 +355,4 @@ size_t wlr_session_find_gpus(struct wlr_session *session,
|
||||||
udev_enumerate_unref(en);
|
udev_enumerate_unref(en);
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue