]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82f3feb94be391e3aa0a65dc63371f12d74f2076
tree88a659aa9016b8fa65593f23f8b810cb319040b3
parentad784d039689c904c58bcd5105bf9f0f17bfd26c
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