]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/mdp5: Add cursor planes
authorArchit Taneja <architt@codeaurora.org>
Fri, 16 Dec 2016 06:30:30 +0000 (12:00 +0530)
committerRob Clark <robdclark@gmail.com>
Mon, 6 Feb 2017 16:28:44 +0000 (11:28 -0500)
commitbbcacfb0a9a6a508fc6a5cad27776644b71a018d
tree2b97b0c72b56404648bdf9caa32552adaf13f7e0
parentab59d68d59c9f6f0f9cc6be186f68e36f139529c
drm/msm/mdp5: Add cursor planes

Register cursor drm_planes. The loop in modeset_init that inits the
planes and crtcs has to be refactored a bit. We first iterate all the
hwpipes to find the cursor planes. Then, we loop again to create
crtcs.

In msm_atomic_wait_for_commit_done, remove the check which bypasses
waiting for vsyncs if state->legacy_cursor_updates is true.

We will later create a fast path for cursor position changes in the
cursor plane's update_plane func that doesn't go via the regular
atomic commit path. For rest of cursor related updates, we will have
to wait for vsyncs, so ignore the legacy_cursor_updates flag.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
drivers/gpu/drm/msm/msm_atomic.c