aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-03-20 20:21:28 +0100
committerSimon Ser <contact@emersion.fr>2023-03-20 20:21:28 +0100
commit1d64e12391a638201c679e71d4e22bb45e5faa8e (patch)
treeeabdad3f934f6852fe03e1e31676448a399d798e
parent5602fb1373959fc1acef544ffd1e3e08ba8a0f77 (diff)
backend/drm: log drm_connector_alloc_crtc() failures
Helps figuring out why e.g. get_primary_formats fails.
-rw-r--r--backend/drm/drm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 40360f17..7b6b5451 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -852,7 +852,11 @@ static bool drm_connector_alloc_crtc(struct wlr_drm_connector *conn) {
if (conn->crtc == NULL) {
realloc_crtcs(conn->backend, conn);
}
- return conn->crtc != NULL;
+ bool ok = conn->crtc != NULL;
+ if (!ok) {
+ wlr_drm_conn_log(conn, WLR_DEBUG, "Failed to find free CRTC");
+ }
+ return ok;
}
static struct wlr_drm_mode *drm_mode_create(const drmModeModeInfo *modeinfo) {