drm/msm/mdp5: handle non-fullscreen base plane case
authorRob Clark <robdclark@gmail.com>
Thu, 13 Oct 2016 16:43:17 +0000 (12:43 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 26 Nov 2016 20:37:53 +0000 (15:37 -0500)
commit1455adbd45962967f3873af70aeb1ce8dc898bab
tree5120542f2b3cb7794b377c5389bb55dcfdd5eee7
parent7625e05286cf3f37c8a5e633379a4d014ddbe555
drm/msm/mdp5: handle non-fullscreen base plane case

If the bottom-most layer is not fullscreen, we need to use the BASE
mixer stage for solid fill (ie. MDP5_CTL_BLEND_OP_FLAG_BORDER_OUT).  The
blend_setup() code pretty much handled this already, we just had to
figure this out in _atomic_check() and assign the stages appropriately.

Also fix the case where there are zero enabled planes, where we also
need to enable BORDER_OUT.

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