]> git.baikalelectronics.ru Git - kernel.git/commit
drm/plane: Pass old state to ->atomic_update()
authorThierry Reding <treding@nvidia.com>
Tue, 25 Nov 2014 11:09:44 +0000 (12:09 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 25 Nov 2014 12:27:58 +0000 (13:27 +0100)
commit0bbbedb089affea5b958455042ad63fc5ade0a2c
tree56d476e091b15d9947c12bdd871838254c406fc2
parent1a687b3e1eca5f7c84baa3fbf4717d5437dee46b
drm/plane: Pass old state to ->atomic_update()

In most situations it will be useful to have the old state passed to the
->atomic_update() callback. For example if a plane is being disabled the
new state's .crtc field will be NULL, but some drivers may rely on this
field to program the CRTCs registers.

v2: rename variable to old_plane_state and remove redundant comment as
suggested by Daniel Vetter, remove an Exynos hunk that doesn't apply to
drm-next and add a hunk for pending MSM mdp5 changes

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/drm_plane_helper.c
drivers/gpu/drm/msm/mdp/mdp4/mdp4_plane.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
include/drm/drm_plane_helper.h