drm: Complete moving rotation property to core
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 26 Feb 2015 13:49:17 +0000 (13:49 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 10 Mar 2015 08:59:32 +0000 (09:59 +0100)
Commit 1da30627fc511a57c9bd23a02c97f0576379f761 "drm: Add rotation value to
plane state" moved the rotation property to DRM core but only did the set
property part. This does the get property part as well.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic.c

index 321e098ddf04091c29605c5d9ca725007f8d6d2e..7ca54cb6b15b9e25eaf9ecca5f06f9d97843e7fb 100644 (file)
@@ -450,6 +450,8 @@ drm_atomic_plane_get_property(struct drm_plane *plane,
                *val = state->src_w;
        } else if (property == config->prop_src_h) {
                *val = state->src_h;
+       } else if (property == config->rotation_property) {
+               *val = state->rotation;
        } else if (plane->funcs->atomic_get_property) {
                return plane->funcs->atomic_get_property(plane, state, property, val);
        } else {