mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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:
parent
805807fd5b
commit
fc4996d853
2 changed files with 65 additions and 16 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue