diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-06 17:06:37 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-04-29 19:51:57 +0200 |
commit | 485ecc11a6d31c1a2ba3724dd61ce34f77e7436f (patch) | |
tree | 6da8c9ede14785a3d8abffc9e5a3329af133f53b /backend/drm/legacy.c | |
parent | c9c2d7539c69c8bf349a5b633ab61ce2d7c20e8a (diff) |
backend/drm: remove wlr_drm_crtc.pending_modeset
Replace it with a new drm_connector_state_is_modeset function that
decides whether a modeset is necessary directly from the
wlr_output_state which is going to be applied.
Diffstat (limited to 'backend/drm/legacy.c')
-rw-r--r-- | backend/drm/legacy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/legacy.c b/backend/drm/legacy.c index 61b92558..2f573899 100644 --- a/backend/drm/legacy.c +++ b/backend/drm/legacy.c @@ -26,7 +26,7 @@ static bool legacy_crtc_commit(struct wlr_drm_backend *drm, fb_id = fb->id; } - if (crtc->pending_modeset) { + if (drm_connector_state_is_modeset(state)) { uint32_t *conns = NULL; size_t conns_len = 0; drmModeModeInfo *mode = NULL; |