aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {