drm/msm/mdp5: Stage border out on base stage if CRTC has 2 LMs
authorArchit Taneja <architt@codeaurora.org>
Thu, 23 Mar 2017 10:28:14 +0000 (15:58 +0530)
committerRob Clark <robdclark@gmail.com>
Sat, 8 Apr 2017 10:59:36 +0000 (06:59 -0400)
commit359ae86248a5f92dd475e2d8012364a97e57026a
treeb7b564b7b73a313a7ff713205ad6b0208c746c2a
parentbf8dc0a04e52ddccfaa47cf7a3238753344155fa
drm/msm/mdp5: Stage border out on base stage if CRTC has 2 LMs

If a CRTC comprises of 2 LMs, it is mandatory to enable border out
and assign it to the base stage.

We had to enable border out also when the base plane wasn't fullscreen.
Club these checks and put them in a separate function called
get_start_stage() that returns the starting stage for assigning planes.

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