drm/sun4i: Use values calculated by atomic check
authorJernej Skrabec <jernej.skrabec@siol.net>
Fri, 1 Dec 2017 06:05:35 +0000 (07:05 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 5 Dec 2017 12:22:42 +0000 (13:22 +0100)
commit90212fffa4fceba708208908bd690edda7b3e60a
tree521ed9e32c797bd6d75a5bd370c1f6bb918ff5d5
parent5dd2d999acdaa02d849fe550a973d5905884a552
drm/sun4i: Use values calculated by atomic check

Now that we have properly clipped coordinates in plane state structure,
use them.

This also fixes bug where source x and y were adjusted for negative
value, but width and height weren't. It wasn't discovered because
primary plane usually doesn't have negative coordinates.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171201060550.10392-13-jernej.skrabec@siol.net
drivers/gpu/drm/sun4i/sun8i_layer.c
drivers/gpu/drm/sun4i/sun8i_mixer.c