提交 5b560c3a 编写于 作者: V Ville Syrjälä 提交者: Daniel Vetter

drm/msm/mdp5: Use per-plane rotation property

The global mode_config.rotation_property is going away, switch over to
per-plane rotation_property.

v2: Drop the BIT()

Cc: Rob Clark <robdclark@gmail.com>
Cc: Jilai Wang <jilaiw@codeaurora.org>
Cc: Archit Taneja <architt@codeaurora.org>
Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: NRob Clark <robdclark@gmail.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1477077768-4274-2-git-send-email-ville.syrjala@linux.intel.com
上级 8a5bbf32
...@@ -75,15 +75,11 @@ static void mdp5_plane_install_rotation_property(struct drm_device *dev, ...@@ -75,15 +75,11 @@ static void mdp5_plane_install_rotation_property(struct drm_device *dev,
!(mdp5_plane->caps & MDP_PIPE_CAP_VFLIP)) !(mdp5_plane->caps & MDP_PIPE_CAP_VFLIP))
return; return;
if (!dev->mode_config.rotation_property) drm_plane_create_rotation_property(plane,
dev->mode_config.rotation_property = DRM_ROTATE_0,
drm_mode_create_rotation_property(dev, DRM_ROTATE_0 |
DRM_ROTATE_0 | DRM_REFLECT_X | DRM_REFLECT_Y); DRM_REFLECT_X |
DRM_REFLECT_Y);
if (dev->mode_config.rotation_property)
drm_object_attach_property(&plane->base,
dev->mode_config.rotation_property,
DRM_ROTATE_0);
} }
/* helper to install properties which are common to planes and crtcs */ /* helper to install properties which are common to planes and crtcs */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册