OSDN Git Service

drm/atomic: Use explicit old/new state in drm_atomic_plane_check()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 6 Nov 2018 19:16:24 +0000 (21:16 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 7 Nov 2018 17:21:56 +0000 (19:21 +0200)
commitd9be05b784225e68cf0c9b95180d3081b4663745
treec9bb5700b32a820eb80d0d9c8f0d4a380f6becc6
parentb2432adf33e8c8eb81afaba3030f0ba0145ce7d4
drm/atomic: Use explicit old/new state in drm_atomic_plane_check()

Convert drm_atomic_plane_check() over to using explicit old vs. new
plane states. Avoids the confusion of "what does plane->state mean
again?".

v2: Stick to the multi-stage logic in plane_switching_crtc() (Daniel)

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