aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/mdp/mdp5/mdp5_pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/msm/mdp/mdp5/mdp5_pipe.c')
-rw-r--r--drivers/gpu/drm/msm/mdp/mdp5/mdp5_pipe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_pipe.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_pipe.c
index 1ae9dc8d260d..35c4dabb0c0c 100644
--- a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_pipe.c
+++ b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_pipe.c
@@ -53,6 +53,14 @@ struct mdp5_hw_pipe *mdp5_pipe_assign(struct drm_atomic_state *s,
53 if (caps & ~cur->caps) 53 if (caps & ~cur->caps)
54 continue; 54 continue;
55 55
56 /*
57 * don't assign a cursor pipe to a plane that isn't going to
58 * be used as a cursor
59 */
60 if (cur->caps & MDP_PIPE_CAP_CURSOR &&
61 plane->type != DRM_PLANE_TYPE_CURSOR)
62 continue;
63
56 /* possible candidate, take the one with the 64 /* possible candidate, take the one with the
57 * fewest unneeded caps bits set: 65 * fewest unneeded caps bits set:
58 */ 66 */