mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-23 03:00:04 +07:00
drm/vmwgfx: Use __drm_atomic_helper_plane_reset instead of copying the logic
A new helper function(__drm_atomic_helper_plane_reset) has been added for linking a plane with its state and resetting the core properties(alpha, rotation, etc.) to their default values. Use that instead of duplicating the logic. Reviewed-by: Sinclair Yeh <syeh@vmware.com> Reviewed-by: Deepak Rawat <drawat@vmware.com> Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> Acked-by: Sinclair Yeh <syeh@vmware.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180804161530.12275-11-alexandru-cosmin.gheorghe@arm.com
This commit is contained in:
parent
42da633809
commit
e81eb98e3f
@ -720,9 +720,7 @@ void vmw_du_plane_reset(struct drm_plane *plane)
|
||||
return;
|
||||
}
|
||||
|
||||
plane->state = &vps->base;
|
||||
plane->state->plane = plane;
|
||||
plane->state->rotation = DRM_MODE_ROTATE_0;
|
||||
__drm_atomic_helper_plane_reset(plane, &vps->base);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user