aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2015-01-21 19:35:40 -0500
committerDave Airlie <airlied@redhat.com>2015-01-27 03:48:53 -0500
commit1da30627fc511a57c9bd23a02c97f0576379f761 (patch)
tree42511d2b9201e96a58e675bb1cdc14d558b1a9f2 /include/drm/drm_crtc.h
parent9e26220286dc79eeeef25de138b144fde3d41a85 (diff)
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 <daniel@ffwll.ch> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index ac55ab0dc88b..0ebd9286b332 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -764,6 +764,9 @@ struct drm_plane_state {
764 uint32_t src_x, src_y; 764 uint32_t src_x, src_y;
765 uint32_t src_h, src_w; 765 uint32_t src_h, src_w;
766 766
767 /* Plane rotation */
768 unsigned int rotation;
769
767 struct drm_atomic_state *state; 770 struct drm_atomic_state *state;
768}; 771};
769 772