From a2a6030902c780d265a3442c96fffb6968e0d3ba Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Thu, 4 Sep 2025 13:35:31 -0500 Subject: [PATCH] drm: Test cursor plane transform when finding plane for view Explicitly test the cursor transform so we can properly set the plane failure reason. Signed-off-by: Derek Foreman --- libweston/backend-drm/state-propose.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libweston/backend-drm/state-propose.c b/libweston/backend-drm/state-propose.c index b03d361de..19c0bf988 100644 --- a/libweston/backend-drm/state-propose.c +++ b/libweston/backend-drm/state-propose.c @@ -556,6 +556,10 @@ drm_output_find_plane_for_view(struct drm_output_state *state, FAILURE_REASONS_BUFFER_TOO_BIG; } + if (!drm_paint_node_transform_supported(pnode, output->cursor_plane)) + pnode->try_view_on_plane_failure_reasons = + FAILURE_REASONS_INCOMPATIBLE_TRANSFORM; + if (pnode->try_view_on_plane_failure_reasons == FAILURE_REASONS_NONE) possible_plane_mask = (1 << output->cursor_plane->plane_idx); } else {