Skip to content

Commit fec7487

Browse files
committed
drm/plane: Clarify our expectations for src/dst rectangles
The rectangles are usually clipped, but it can be useful to have them unclipped, for example for cursor planes. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> [mlankhorst: Change cursor plane to hardware performing clipping. (Ville) Fix dst description that went missing.] Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191010112918.15724-1-maarten.lankhorst@linux.intel.com
1 parent 76d6d3d commit fec7487

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

‎include/drm/drm_plane.h‎

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,26 @@ struct drm_plane_state {
184184
*/
185185
struct drm_property_blob *fb_damage_clips;
186186

187-
/** @src: clipped source coordinates of the plane (in 16.16) */
188-
/** @dst: clipped destination coordinates of the plane */
187+
/**
188+
* @src:
189+
*
190+
* source coordinates of the plane (in 16.16).
191+
*
192+
* When using drm_atomic_helper_check_plane_state(),
193+
* the coordinates are clipped, but the driver may choose
194+
* to use unclipped coordinates instead when the hardware
195+
* performs the clipping automatically.
196+
*/
197+
/**
198+
* @dst:
199+
*
200+
* clipped destination coordinates of the plane.
201+
*
202+
* When using drm_atomic_helper_check_plane_state(),
203+
* the coordinates are clipped, but the driver may choose
204+
* to use unclipped coordinates instead when the hardware
205+
* performs the clipping automatically.
206+
*/
189207
struct drm_rect src, dst;
190208

191209
/**

0 commit comments

Comments
 (0)