drm/armada: fix plane location and size for interlace
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 25 Jan 2019 10:56:54 +0000 (10:56 +0000)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 17 May 2019 11:16:32 +0000 (12:16 +0100)
commit1d1547ec12bc7d4d03c21704d4445aff8bcac8c1
tree88a659aa9016b8fa65593f23f8b810cb319040b3
parent9184ae8db3d563438519cab295c2c9698255ca87
drm/armada: fix plane location and size for interlace

When the CRTC is programmed for interlace, we have to halve the Y
parameters for the plane.  Rather than doing this in the update
function (which would need the calculation repeated for the old
state as well as the new state), arrange to do the calculation in
atomic_check and save it in our private plane state structure.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/armada/armada_hw.h
drivers/gpu/drm/armada/armada_overlay.c
drivers/gpu/drm/armada/armada_plane.c
drivers/gpu/drm/armada/armada_plane.h