Replace drmModeSetCrtc by Atomic APIs
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:Daniel Nicoara <dnicoara@chromium.org> Cr-Commit-Position: refs/heads/master@{#735013}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment