drm/mediatek: Ensure the cursor plane is on top of other overlays
authorSean Paul <seanpaul@chromium.org>
Thu, 30 Jan 2020 19:24:55 +0000 (14:24 -0500)
committerCK Hu <ck.hu@mediatek.com>
Tue, 11 Feb 2020 01:14:47 +0000 (09:14 +0800)
commit26d696192aa5f4fe9119d6d23f90ed535053abca
tree7f742a92498e398a56e2a29ca5c0ee776dbabae3
parent318caac7c81cdf5806df30c3d72385659a5f0f53
drm/mediatek: Ensure the cursor plane is on top of other overlays

Currently the cursor is placed on the first overlay plane, which means
it will be at the bottom of the stack when the hw does the compositing
with anything other than primary plane. Since mtk doesn't support plane
zpos, change the cursor location to the top-most plane.

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_drm_crtc.c