summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_atomic.c
diff options
context:
space:
mode:
authorMatt Roper2015-01-22 01:35:40 +0100
committerDave Airlie2015-01-27 09:48:53 +0100
commit1da30627fc511a57c9bd23a02c97f0576379f761 (patch)
tree42511d2b9201e96a58e675bb1cdc14d558b1a9f2 /drivers/gpu/drm/drm_atomic.c
parentMerge branch 'drm-next' of https://github.com/markyzq/kernel-drm-rockchip int... (diff)
downloadkernel-qcow2-linux-1da30627fc511a57c9bd23a02c97f0576379f761.tar.gz
kernel-qcow2-linux-1da30627fc511a57c9bd23a02c97f0576379f761.tar.xz
kernel-qcow2-linux-1da30627fc511a57c9bd23a02c97f0576379f761.zip
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 'drivers/gpu/drm/drm_atomic.c')
-rw-r--r--drivers/gpu/drm/drm_atomic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index af3f3dfdb49f..4c5c9c3899e0 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -387,6 +387,8 @@ int drm_atomic_plane_set_property(struct drm_plane *plane,
state->src_w = val;
} else if (property == config->prop_src_h) {
state->src_h = val;
+ } else if (property == config->rotation_property) {
+ state->rotation = val;
} else if (plane->funcs->atomic_set_property) {
return plane->funcs->atomic_set_property(plane, state,
property, val);