• Mark Yacoub's avatar
    Replace drmModeSetCrtc by Atomic APIs · bb8e99d0
    Mark Yacoub authored
    If the device supports atomic APIs, use drmModeAtomicCommit to modeset
    and disable instead of drmModeSetCrtc.
    Abstracted Modeset and Disabled code to HDPM to handle both atomic and
    legacy call.
    Updated tests to support Connector and CRTC props.
    
    BUG=987274
    TEST=HardwareDisplayControllerTest.CheckModesettingSetsProps,
    HardwareDisplayPlaneManagerLegacyTest.Modeset,
    HardwareDisplayPlaneManagerLegacyTest.DisableModeset,
    HardwareDisplayPlaneManagerAtomicTest.DisableModeset, Tested on
    Nautilus(Intel), Grunt(AMD) and Cave(Legacy).
    
    Change-Id: Ic307c04df4e22d1696abb31ebcd820f6bdcb542a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1715751
    Commit-Queue: Mark Yacoub <markyacoub@google.com>
    Reviewed-by: default avatarDaniel Nicoara <dnicoara@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#735013}
    bb8e99d0
crtc_controller.h 3.26 KB