diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2020-02-16 13:41:51 +0000 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-02-17 10:43:58 +0100 |
commit | 2bad34e02423f19257b6f0473aebc46dcab74098 (patch) | |
tree | 7e2534c045f574120a188d4570a52d6406fb2a66 /backend | |
parent | 273b280f469f5be3455f98f4230b169cc9ee67f2 (diff) |
backend/session: allow GPU enumeration on FreeBSD
https://github.com/FreeBSDDesktop/libudev-devd/commit/f11ee5b418c740ba6fd4c946ab10b0d89702e4d0
Diffstat (limited to 'backend')
-rw-r--r-- | backend/session/session.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/backend/session/session.c b/backend/session/session.c index a98093c7..01eeffd9 100644 --- a/backend/session/session.c +++ b/backend/session/session.c @@ -288,11 +288,6 @@ size_t wlr_session_find_gpus(struct wlr_session *session, 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); if (!en) { 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); return i; -#endif } |