Merge branch 'drm-layer-fbs' into 'master'

Draft: backend/drm: track layer FBs in wlr_drm_connector_state

See merge request wlroots/wlroots!4589
This commit is contained in:
Simon Ser 2024-11-04 19:52:06 +00:00
commit cac1b1cd71
3 changed files with 54 additions and 75 deletions

View file

@ -52,8 +52,6 @@ struct wlr_drm_layer {
struct wlr_addon addon; // wlr_output_layer.addons
struct wl_list link; // wlr_drm_crtc.layers
/* Buffer to be submitted to the kernel on the next page-flip */
struct wlr_drm_fb *pending_fb;
/* Buffer submitted to the kernel, will be presented on next vblank */
struct wlr_drm_fb *queued_fb;
/* Buffer currently displayed on screen */
@ -148,6 +146,7 @@ struct wlr_drm_connector_state {
struct wlr_drm_fb *primary_fb;
struct wlr_drm_viewport primary_viewport;
struct wlr_drm_fb *cursor_fb;
struct wlr_drm_fb **layer_fbs; // same length as base.layers_len
struct wlr_drm_syncobj_timeline *wait_timeline;
uint64_t wait_point;