From da6622f1d6b83fcff1f68e37e05677b0c9f63aa0 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 5 Jun 2024 14:46:23 -0500 Subject: [PATCH] compositor: Add PAINT_NODE_BUFFER_DIRTY In the future we'll use this, but for now just add the tracking. Signed-off-by: Derek Foreman --- libweston/compositor.c | 6 ++++-- libweston/libweston-internal.h | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libweston/compositor.c b/libweston/compositor.c index a1fbef21..f5583372 100644 --- a/libweston/compositor.c +++ b/libweston/compositor.c @@ -266,7 +266,8 @@ paint_node_update_late(struct weston_paint_node *pnode) pnode->status &= ~(PAINT_NODE_VISIBILITY_DIRTY | PAINT_NODE_PLANE_DIRTY | - PAINT_NODE_CONTENT_DIRTY); + PAINT_NODE_CONTENT_DIRTY | + PAINT_NODE_BUFFER_DIRTY); /* Nothing should be able to flip "early" bits between * the early and late updates. @@ -3156,7 +3157,8 @@ weston_surface_attach(struct weston_surface *surface, } status |= WESTON_SURFACE_DIRTY_BUFFER; - + weston_surface_dirty_paint_nodes(surface, + PAINT_NODE_BUFFER_DIRTY); old_buffer = NULL; weston_buffer_reference(&surface->buffer_ref, buffer, BUFFER_MAY_BE_ACCESSED); diff --git a/libweston/libweston-internal.h b/libweston/libweston-internal.h index c54b6681..b218bd49 100644 --- a/libweston/libweston-internal.h +++ b/libweston/libweston-internal.h @@ -507,7 +507,8 @@ enum paint_node_status { PAINT_NODE_VISIBILITY_DIRTY = 1 << 2, PAINT_NODE_PLANE_DIRTY = 1 << 3, PAINT_NODE_CONTENT_DIRTY = 1 << 4, - PAINT_NODE_ALL_DIRTY = (1 << 5) - 1, + PAINT_NODE_BUFFER_DIRTY = 1 << 5, + PAINT_NODE_ALL_DIRTY = (1 << 6) - 1, }; /**