From 1465362e9f22ef47b778c1b6d56f8d555b652d27 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 10 Oct 2025 09:15:07 -0500 Subject: [PATCH] compositor: Move paint node censor into early update Previously I didn't think we needed this set up before assign_planes, but certainly in the near future we'll want access to these bits for plane assignment. It should be harmless to move them all now. Signed-off-by: Derek Foreman --- libweston/compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/compositor.c b/libweston/compositor.c index a2aabc096..b9485db75 100644 --- a/libweston/compositor.c +++ b/libweston/compositor.c @@ -284,6 +284,7 @@ paint_node_update_early(struct weston_paint_node *pnode) pnode->is_fully_blended = weston_view_is_fully_blended(pnode->view, &pnode->view->transform.boundingbox); } + maybe_replace_paint_node(pnode); pnode->status &= ~(PAINT_NODE_VIEW_DIRTY | PAINT_NODE_OUTPUT_DIRTY); } @@ -335,7 +336,6 @@ paint_node_update_late(struct weston_paint_node *pnode) pnode->plane_next = NULL; } - maybe_replace_paint_node(pnode); if (buffer_dirty) surf->compositor->renderer->attach(pnode);