]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
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)
commitbff8fba48b52d77b39084743b6209b6442a9e622
tree2b97b0c72b56404648bdf9caa32552adaf13f7e0
parent5798c8e0d3e09be71d2e937b985b17d89f0b7535
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