modesetting: Use atomic modesetting to set DPMS mode

Graphics / X.Org / X.Org Server - Louis-Francis Ratté-Boulianne [collabora.com] - 4 April 2018 18:01 EDT

CRTCs and outputs needs to be enabled/disabled when the current DPMS mode is changed. We also try to do it in an atomic commit when possible.

bc4d27813 modesetting: Use atomic modesetting to set DPMS mode
hw/xfree86/drivers/modesetting/driver.c | 5 +-
hw/xfree86/drivers/modesetting/driver.h | 1 +
hw/xfree86/drivers/modesetting/drmmode_display.c | 385 +++++++++++++++++------
hw/xfree86/drivers/modesetting/drmmode_display.h | 5 +-
hw/xfree86/drivers/modesetting/pageflip.c | 13 +-
5 files changed, 299 insertions(+), 110 deletions(-)

Upstream: cgit.freedesktop.org


  • Share