Merge pull request #1182 from ammen99/master

session: load GPU devices even if they have zero connectors
master
Scott Anderson 6 years ago committed by GitHub
commit ce0ab4d4b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -220,17 +220,9 @@ static int open_if_kms(struct wlr_session *restrict session, const char *restric
goto out_fd; goto out_fd;
} }
if (res->count_crtcs <= 0 || res->count_connectors <= 0 ||
res->count_encoders <= 0) {
goto out_res;
}
drmModeFreeResources(res); drmModeFreeResources(res);
return fd; return fd;
out_res:
drmModeFreeResources(res);
out_fd: out_fd:
wlr_session_close_file(session, fd); wlr_session_close_file(session, fd);
return -1; return -1;

Loading…
Cancel
Save