OSDN Git Service

drm_hwcomposer: Use atomic modeset to set crtc timing
authorSean Paul <seanpaul@chromium.org>
Wed, 3 Jun 2015 18:08:27 +0000 (14:08 -0400)
committerSean Paul <seanpaul@chromium.org>
Mon, 15 Jun 2015 20:30:48 +0000 (16:30 -0400)
commit877be974a2d4fc518700be8ffe803a50cb716ead
treefd3bb735012580ddaf2edf31ffd31b1083bb6117
parent1f4ff5aec7bec305558228adb65ba56bd0b9f366
drm_hwcomposer: Use atomic modeset to set crtc timing

Use the new drm blob ioctl and atomic modeset properties to
do atomic modesetting, as opposed to the old setCrtc call.

This allows us to set timing as soon as the system layer requests
a new active config, as opposed to delaying it until we have
an fb. Aside from reducing complexity, this should help with
event control requests as we'll be able to service them with
hw vblanks instead of synthesized sleeps.

Change-Id: I9c80d44f52f52881a3a25b2ae518973d468bc110
Signed-off-by: Sean Paul <seanpaul@chromium.org>
13 files changed:
drmcompositor.cpp
drmcompositor.h
drmconnector.cpp
drmconnector.h
drmcrtc.cpp
drmcrtc.h
drmmode.cpp
drmmode.h
drmproperty.cpp
drmproperty.h
drmresources.cpp
drmresources.h
hwcomposer.cpp