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 <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2026-03-20 13:08:31 -05:00
parent 2f460b513f
commit 7833a01b4d

View file

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