backend/drm: rework struct wlr_drm_page_flip for multiple connectors

We need to store the CRTC ID for each connector at the time of the
atomic commit, because future commits may change the CRTC/connector
mapping.
This commit is contained in:
Simon Ser 2024-02-14 18:01:49 +01:00 committed by Kenny Levinsen
parent 805807fd5b
commit fc4996d853
2 changed files with 65 additions and 16 deletions

View file

@ -159,7 +159,13 @@ struct wlr_drm_connector_state {
*/
struct wlr_drm_page_flip {
struct wl_list link; // wlr_drm_connector.page_flips
struct wlr_drm_connector *conn;
struct wlr_drm_page_flip_connector *connectors;
size_t connectors_len;
};
struct wlr_drm_page_flip_connector {
uint32_t crtc_id;
struct wlr_drm_connector *connector; // may be NULL
};
struct wlr_drm_connector {