From f72686c0b65b9525c9003d43eb626d8c7f4cbae8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 9 May 2020 22:07:55 +0200 Subject: [PATCH] backend/drm: fix crash in session_signal conn->crtc is NULL in case the output is disabled. However, the DRM backend will set the GAMMA_LUT property anyway. On each commit the whole state is sent to KMS. Adding WLR_DRM_CRTC_GAMMA_LUT to the pending state would just make the backend re-create the blob containing the gamma LUT. --- backend/drm/backend.c | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/drm/backend.c b/backend/drm/backend.c index 6f9370f3..452d91c5 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -93,7 +93,6 @@ static void session_signal(struct wl_listener *listener, void *data) { struct wlr_drm_connector *conn; wl_list_for_each(conn, &drm->outputs, link){ - conn->crtc->pending |= WLR_DRM_CRTC_GAMMA_LUT; if (conn->output.enabled && conn->output.current_mode != NULL) { drm_connector_set_mode(&conn->output, conn->output.current_mode);