drm/atomic: Add encoder_mask to crtc_state, v3.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 28 Jan 2016 14:04:58 +0000 (15:04 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 9 Feb 2016 10:21:06 +0000 (11:21 +0100)
commite87a52b38943608531ff63ea397b1ae5dd48e341
tree4e012a5f9f526aa22600e523d58ad0964a6537ef
parent97a8df90875f72ba3b4c3320759fd93cea743261
drm/atomic: Add encoder_mask to crtc_state, v3.

This allows iteration over encoders without requiring connection_mutex.

Changes since v1:
- Add a set_best_encoder helper function and update encoder_mask inside
  it.
Changes since v2:
- Relax the WARN_ON(!crtc), with explanation.
- Call set_best_encoder when connector is moved between crtc's.
- Add some paranoia to steal_encoder to prevent accidentally setting
  best_encoder to NULL.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/56AA200A.6070501@linux.intel.com
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/i915/intel_display.c
include/drm/drm_crtc.h