drm: initialize default rotation value to DRM_ROTATE_0
Subsystems (2)
PATCH 1/1 drm: initialize default rotation value to DRM_ROTATE_0
When no console framebuffer is enabled, the default plane state is defined by plane reset function. If driver uses generic helper, then rotation property is set to zero. This is not a valid value for that enum. This patch sets default rotation value to DRM_ROTATE_0.
Signed-off-by Marek Szyprowski <[email protected]>
--- drivers/gpu/drm/drm_atomic_helper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_atomic_helper.c +3 -1
@@ -2526,8 +2526,10 @@ void drm_atomic_helper_plane_reset(struct drm_plane *plane)kfree (plane->state); plane->state =kzalloc (sizeof (*plane->state),GFP_KERNEL ); -if (plane->state) +if (plane->state) { plane->state->plane = plane; + plane->state->rotation =BIT (DRM_ROTATE_0 ); + } }EXPORT_SYMBOL (drm_atomic_helper_plane_reset);
Signature · 6 lines
1.9.2 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Daniel Vetter
AppliedQuoted 6 lines · Marek Szyprowski
When no console framebuffer is enabled, the default plane state is defined by plane reset function. If driver uses generic helper, then rotation property is set to zero. This is not a valid value for that enum. This patch sets default rotation value to
DRM_ROTATE_0.Signed-off-by Marek Szyprowski <[email protected]>
Applied to drm-misc.
-Daniel
Quoted 23 lines
--- drivers/gpu/drm/drm_atomic_helper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/drm_atomic_helper.c +3
-1@@ -2526,8 +2526,10 @@ void drm_atomic_helper_plane_reset(struct drm_plane *plane)kfree (plane->state); plane->state =kzalloc (sizeof (*plane->state),GFP_KERNEL ); -if (plane->state) +if (plane->state) { plane->state->plane = plane; + plane->state->rotation =BIT (DRM_ROTATE_0 ); + } }EXPORT_SYMBOL (drm_atomic_helper_plane_reset);Signature · 1 line
1.9.2
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel