From 1da30627fc511a57c9bd23a02c97f0576379f761 Mon Sep 17 00:00:00 2001 From: Matt Roper Date: Wed, 21 Jan 2015 16:35:40 -0800 Subject: drm: Add rotation value to plane state The rotation property is shared by multiple drivers, so it makes sense to store the rotation value (for atomic-converted drivers) in the common plane state so that core code can eventually access it as well. Cc: dri-devel@lists.freedesktop.org Suggested-by: Daniel Vetter Reviewed-by: Thierry Reding Signed-off-by: Matt Roper Signed-off-by: Dave Airlie --- include/drm/drm_crtc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/drm/drm_crtc.h') diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index ac55ab0..0ebd928 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h @@ -764,6 +764,9 @@ struct drm_plane_state { uint32_t src_x, src_y; uint32_t src_h, src_w; + /* Plane rotation */ + unsigned int rotation; + struct drm_atomic_state *state; }; -- cgit v1.1