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 <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2025-09-04 13:35:31 -05:00
parent 23b9f92398
commit a2a6030902

View file

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