mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 04:48:04 +02:00
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:
parent
23b9f92398
commit
a2a6030902
1 changed files with 4 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue