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 <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2024-06-05 14:46:23 -05:00 committed by Marius Vlad
parent e2763565b6
commit da6622f1d6
2 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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,
};
/**