backend/drm: track pending atomic state in wlr_drm_connector_state

This centralizes logic common for both the atomic and libliftoff
backends. Additionally, a struct will make it easier to implement
multi-connector commits (since it can be stored in an array).
This commit is contained in:
Simon Ser 2024-02-14 15:41:29 +01:00 committed by Kenny Levinsen
parent d7d974ae30
commit 4636f8c407
6 changed files with 116 additions and 146 deletions

View file

@ -59,7 +59,7 @@ static bool legacy_crtc_test(struct wlr_drm_connector *conn,
}
static bool legacy_crtc_commit(struct wlr_drm_connector *conn,
const struct wlr_drm_connector_state *state,
struct wlr_drm_connector_state *state,
struct wlr_drm_page_flip *page_flip, uint32_t flags, bool test_only) {
if (!legacy_crtc_test(conn, state)) {
return false;