mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
backend/drm: track layer FBs in wlr_drm_connector_state
This commit is contained in:
parent
4939a81ab4
commit
6a2bf37bd9
3 changed files with 45 additions and 72 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue