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>
Wed, 2 Nov 2016 14:49:33 +0000 (10:49 -0400)
commit31e4801aa2e59d4b42dc0fd42846a3aa7a6361af
treee91f294bd03e0c480291531a9a1a1008d2542d20
parent73b65b197024f3f9ef16a28cc9533c011e0a3f6d
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