compositor-drm: head detach requires a modeset
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 29 Nov 2017 12:33:33 +0000 (14:33 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 2 May 2018 09:08:34 +0000 (12:08 +0300)
commit7f853799e2ec2c43c6d45e399ae575b86ef97e8a
tree8fe30429f7c179ad525ada968a22681a7ac24385
parentdb4c7d7237ac297cfdd22b9a1d856d9999399ff2
compositor-drm: head detach requires a modeset

When a head is detached from an enabled output, that output needs to go
through a modeset (drmModeSetCrtc() / ATOMIC_ALLOW_MODESET) so that the
connector is actually removed from the CRTC.

This has not yet been a problem, because an output could only have one
head at a time, and would be automatically disabled on detach. It would
be a problem with clone mode.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
libweston/compositor-drm.c