diff options
author | Thomas Wood <thomas.wood@intel.com> | 2014-08-20 09:45:00 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-08-20 11:19:27 -0400 |
commit | 3a5f87c286515c54ff5c52c3e64d0c522b7570c0 (patch) | |
tree | ea53c5a3dccac1e556bc008270b85230fe07b064 /include/drm/drm_crtc.h | |
parent | fd639ac6dcbcbae4f2131bf1390a032df659ffb7 (diff) |
drm: fix plane rotation when restoring fbdev configuration
Make sure plane rotation is reset correctly when restoring the fbdev
configuration by using drm_mode_plane_set_obj_prop which calls the
driver's set_property callback.
The rotation reset feature was introduced in commit 9783de2 (drm:
Resetting rotation property) and the callback issue was originally
addressed in a previous version of the patch, but the fix was not
present in the final version.
v2: Fix documentation warning
Add some more details to the commit message (Daniel Vetter)
Testcase: igt/kms_rotation_crc
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82236
Cc: Sonika Jindal <sonika.jindal@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Dave Airlie <airlied@gmail.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r-- | include/drm/drm_crtc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 62f73bdbcc47..38fae5d9ad73 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -1121,6 +1121,9 @@ extern int drm_mode_obj_get_properties_ioctl(struct drm_device *dev, void *data, | |||
1121 | struct drm_file *file_priv); | 1121 | struct drm_file *file_priv); |
1122 | extern int drm_mode_obj_set_property_ioctl(struct drm_device *dev, void *data, | 1122 | extern int drm_mode_obj_set_property_ioctl(struct drm_device *dev, void *data, |
1123 | struct drm_file *file_priv); | 1123 | struct drm_file *file_priv); |
1124 | extern int drm_mode_plane_set_obj_prop(struct drm_plane *plane, | ||
1125 | struct drm_property *property, | ||
1126 | uint64_t value); | ||
1124 | 1127 | ||
1125 | extern void drm_fb_get_bpp_depth(uint32_t format, unsigned int *depth, | 1128 | extern void drm_fb_get_bpp_depth(uint32_t format, unsigned int *depth, |
1126 | int *bpp); | 1129 | int *bpp); |