]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d131ed7dfcae9ad8da52b4169bf463da2d50dd8
treee91f294bd03e0c480291531a9a1a1008d2542d20
parent47fb77ef57074cba8966d3fe4e6aa19980fceef8
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