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.
This commit is contained in:
Simon Ser 2021-04-06 17:06:37 +02:00 committed by Kenny Levinsen
parent c9c2d7539c
commit 485ecc11a6
4 changed files with 14 additions and 11 deletions

View file

@ -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;