]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic: Use explicit old crtc state in drm_atomic_add_affected_planes()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 1 Nov 2018 18:46:44 +0000 (20:46 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 7 Nov 2018 17:21:56 +0000 (19:21 +0200)
commit0e872119489c3190ac8c9dc65c8391f8657fb9da
tree2a2c00ba2c70e15c6eccedbd5300f64b058d625a
parent3c8aeeba5d868b979255d41b6e8f24e294331f90
drm/atomic: Use explicit old crtc state in drm_atomic_add_affected_planes()

Replace 'crtc->state' with the explicit old crtc state.

Actually it shouldn't matter whether we use the old or the new
crtc state here since any plane that has been removed from the
crtc since the crtc state was duplicated will have been added
to the atomic state already. That is, you can't call
drm_atomic_set_crtc_for_plane() without having the new
plane state already in hand.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181101184646.14753-1-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Harry Wentland <harry.wentland@amd.com>
drivers/gpu/drm/drm_atomic.c