aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2018-08-09 08:37:05 +1200
committerGitHub <noreply@github.com>2018-08-09 08:37:05 +1200
commitce0ab4d4b5f4f396e807c1c580274d68b3efa43c (patch)
tree798428ff0555d311ae1391686edd5f6fd4341662
parent28b0a4065b8d37b5301fb75377f1859b1b08af0b (diff)
parentcb42e16f64d3a6322d0371862dc0a2184a94a13f (diff)
Merge pull request #1182 from ammen99/master
session: load GPU devices even if they have zero connectors
-rw-r--r--backend/session/session.c8
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;