OSDN Git Service

drm/atomic: Clean up update_output_state.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 24 Feb 2016 08:37:28 +0000 (09:37 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 Mar 2016 16:17:00 +0000 (17:17 +0100)
commit6ab520a2a105abbd275c4814ac0d61d36b1db4fe
treeda343b95100ecc172002034aa1e70ac93c59a43a
parent327097930d655de5964fcb843b2b412ab68a9bac
drm/atomic: Clean up update_output_state.

With the addition of crtc_state->connector_mask other connectors from
different crtc's aren't needed any more to determine if a crtc has
connectors, so only call add_affected_connectors on the target crtc.
This allows a cleanup to first remove all current connectors, then
add all set->connectors to the target crtc.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1456303053-28806-2-git-send-email-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/drm_atomic_helper.c