drm/atomic-helper: Reject attempts at re-stealing encoders
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 Dec 2015 09:49:14 +0000 (10:49 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 Dec 2015 09:50:27 +0000 (10:50 +0100)
commit97ac3204ab9552ab0b4529fa80f072bdad073339
treeeaa3d96799dce2c8a7a1ce0ee5acf03211975376
parent1494276000db789c6d2acd85747be4707051c801
drm/atomic-helper: Reject attempts at re-stealing encoders

This can happen when we run out of encoders for a multi-crtc modeset,
or also when userspace is silly and tries to clone multiple connectors
that need the same encoder on the same crtc.

Reported-and-Tested-and-Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1449136154-11588-1-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_atomic_helper.c