aboutsummaryrefslogtreecommitdiff
path: root/include/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-06 16:32:01 +0200
committerKenny Levinsen <kl@kl.wtf>2021-04-29 19:51:57 +0200
commit8f90d7f8f51f5d501e3f70ebdab8abfdbfa007b9 (patch)
tree709b3b1918ab20bddbb62f051b15047f72f790c1 /include/backend/drm
parent69d4cf19b54e81111ef68ff46cfe2e23ff122a80 (diff)
backend/drm: take wlr_output_state as arg in crtc_commit
Stop assuming that the state to be applied is in output->pending in crtc_commit. This will allow us to remove ephemeral fields in wlr_drm_crtc, which are used scratch fields to stash temporary per-commit data.
Diffstat (limited to 'include/backend/drm')
-rw-r--r--include/backend/drm/iface.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/backend/drm/iface.h b/include/backend/drm/iface.h
index ae84bafe..98bae974 100644
--- a/include/backend/drm/iface.h
+++ b/include/backend/drm/iface.h
@@ -15,7 +15,8 @@ struct wlr_drm_crtc;
struct wlr_drm_interface {
// Commit al pending changes on a CRTC.
bool (*crtc_commit)(struct wlr_drm_backend *drm,
- struct wlr_drm_connector *conn, uint32_t flags);
+ struct wlr_drm_connector *conn, const struct wlr_output_state *state,
+ uint32_t flags);
};
extern const struct wlr_drm_interface atomic_iface;