compositor-drm: Use plane_state_coords_for_view for cursor

Use the new helper to populate the cursor state as well, with some
special-case handling to account for how we always upload a full-size

As this now fully takes care of buffer transformations, HiDPI client
cursors work, and we also clip the cursor plane completely to CRTC

Signed-off-by: Daniel Stone <>
Reviewed-by: Pekka Paalanen <>
Reported-by: Derek Foreman <>
Tested-by: Emre Ucan <>
1 file changed