From 7833a01b4db0900d11ae52d19315cab75e33afa8 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 20 Mar 2026 13:08:31 -0500 Subject: [PATCH] drm: Reword comment in find_plane_for_view The text can be a bit confusing, so try to clarify it a little bit. Signed-off-by: Derek Foreman --- libweston/backend-drm/state-propose.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libweston/backend-drm/state-propose.c b/libweston/backend-drm/state-propose.c index 5d2763f5a..e27f66c21 100644 --- a/libweston/backend-drm/state-propose.c +++ b/libweston/backend-drm/state-propose.c @@ -723,8 +723,11 @@ drm_output_find_plane_for_view(struct drm_output_state *state, continue; } - /* Pre-judge whether the plane will be set as underlay plane. If so, start - * trying to find underlay plane based on 'current_lowest_zpos_underlay'. */ + /* The paint node isn't occluded by the renderer, so it doesn't + * unconditionally need an underlay plane. However, we may + * only have underlay planes available, so it could use one + * anyway. + */ if (!need_underlay) { uint64_t tmp_next_lowest_zpos; if (current_lowest_zpos == DRM_PLANE_ZPOS_INVALID_PLANE)