aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/backend.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-05-09 22:07:55 +0200
committerSimon Ser <contact@emersion.fr>2020-05-10 12:07:05 +0200
commitf72686c0b65b9525c9003d43eb626d8c7f4cbae8 (patch)
treea67bcb28cec7fb21aca4619c9be0b9fd5ed27776 /backend/drm/backend.c
parent2ca3bdc35e6a712917ceedeaeea99b6265b1ebae (diff)
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.
Diffstat (limited to 'backend/drm/backend.c')
-rw-r--r--backend/drm/backend.c1
1 files changed, 0 insertions, 1 deletions
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);