drm/omap: check that plane is inside crtc
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 16 Jun 2015 11:54:51 +0000 (14:54 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 2 Jul 2015 12:57:58 +0000 (15:57 +0300)
commitc423bc85097327fba71f9a831280d09b64bb62b6
tree859cc24c100d643fc462e309b5de88eb3f83cf7e
parenta903e3b64adfc2e126237f06e0b3ea7d2d8d13b5
drm/omap: check that plane is inside crtc

DRM allows planes to be partially off-screen, but DSS hardware does not.
This patch adds the necessary check to reject plane configs if the plane
is not fully inside the crtc.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/omapdrm/omap_plane.c