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.
This commit is contained in:
parent
2ca3bdc35e
commit
f72686c0b6
|
@ -93,7 +93,6 @@ static void session_signal(struct wl_listener *listener, void *data) {
|
||||||
|
|
||||||
struct wlr_drm_connector *conn;
|
struct wlr_drm_connector *conn;
|
||||||
wl_list_for_each(conn, &drm->outputs, link){
|
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) {
|
if (conn->output.enabled && conn->output.current_mode != NULL) {
|
||||||
drm_connector_set_mode(&conn->output,
|
drm_connector_set_mode(&conn->output,
|
||||||
conn->output.current_mode);
|
conn->output.current_mode);
|
||||||
|
|
Loading…
Reference in New Issue