backend/drm: track layer FBs in wlr_drm_connector_state

This commit is contained in:
Simon Ser 2024-03-04 12:20:37 +01:00
parent 4939a81ab4
commit 6a2bf37bd9
3 changed files with 45 additions and 72 deletions

View file

@ -45,8 +45,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 */
@ -140,6 +138,7 @@ struct wlr_drm_connector_state {
drmModeModeInfo mode;
struct wlr_drm_fb *primary_fb;
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;