drm/atmel-hlcdc: fix clipping of planes
authorPeter Rosin <peda@axentia.se>
Thu, 10 Jan 2019 15:10:44 +0000 (15:10 +0000)
committerBoris Brezillon <bbrezillon@kernel.org>
Sun, 27 Jan 2019 08:19:20 +0000 (09:19 +0100)
commitac109c82478a8212da47c3fbad7def3f9ba0e6c7
tree104ebbb0675377c822dc0e8ce9f92186ae24d1d4
parentd06fe137b567cb4c3e09ef3fa672a8c25305ef98
drm/atmel-hlcdc: fix clipping of planes

With the help from drm_atomic_helper_check_plane_state function, clipping
now handles planes to be partially or totally off-screen. The plane is
disabled if it is not visible.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190110151020.30468-4-peda@axentia.se
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c