diff options
author | Ilia Bozhinov <ammen99@gmail.com> | 2018-08-07 19:18:18 +0300 |
---|---|---|
committer | Ilia Bozhinov <ammen99@gmail.com> | 2018-08-08 07:34:12 +0300 |
commit | cb42e16f64d3a6322d0371862dc0a2184a94a13f (patch) | |
tree | 2c35c7cb504f1a25769be1f241ccdef5b6666418 /backend/session | |
parent | 84e87be6df2e43992d5608eb29966d7e0baef4f7 (diff) |
session: load GPU devices even if they have zero crtcs/connectors/encoders
On some systems (most notably laptops with two GPUs) there are GPUs that
don't have attached outputs. However, we still want to load those GPUs
because they could still be used by the compositor for rendering.
Diffstat (limited to 'backend/session')
-rw-r--r-- | backend/session/session.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/backend/session/session.c b/backend/session/session.c index 8d74bafe..f1cce8bc 100644 --- a/backend/session/session.c +++ b/backend/session/session.c @@ -220,17 +220,9 @@ static int open_if_kms(struct wlr_session *restrict session, const char *restric goto out_fd; } - if (res->count_crtcs <= 0 || res->count_connectors <= 0 || - res->count_encoders <= 0) { - - goto out_res; - } - drmModeFreeResources(res); return fd; -out_res: - drmModeFreeResources(res); out_fd: wlr_session_close_file(session, fd); return -1; |