From 69b22790923186bea48ab23e413927334eff828b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 7 May 2020 17:11:32 +0200 Subject: backend/drm: remove mode argument to crtc_pageflip Add a new wlr_drm_crtc.pending bitfield which keeps track of pending output changes. More fields will be added in the future (e.g. active, gamma). --- include/backend/drm/drm.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/backend/drm/drm.h') diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index 11f6732a..e8fc452a 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -42,8 +42,15 @@ struct wlr_drm_plane { union wlr_drm_plane_props props; }; +enum wlr_drm_crtc_field { + WLR_DRM_CRTC_MODE = 1 << 0, +}; + struct wlr_drm_crtc { uint32_t id; + uint32_t pending; // bitfield of enum wlr_drm_crtc_field + + drmModeModeInfo mode; // Atomic modesetting only uint32_t mode_id; -- cgit v1.2.3