mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-15 05:34:22 -04:00
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:
parent
d7d974ae30
commit
4636f8c407
6 changed files with 116 additions and 146 deletions
|
|
@ -489,7 +489,7 @@ static void drm_connector_rollback_commit(const struct wlr_drm_connector_state *
|
|||
}
|
||||
|
||||
static bool drm_crtc_commit(struct wlr_drm_connector *conn,
|
||||
const struct wlr_drm_connector_state *state,
|
||||
struct wlr_drm_connector_state *state,
|
||||
uint32_t flags, bool test_only) {
|
||||
// Disallow atomic-only flags
|
||||
assert((flags & ~DRM_MODE_PAGE_FLIP_FLAGS) == 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue