drm/exynos: fix clipping when scaling is enabled
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 30 Nov 2015 13:53:28 +0000 (14:53 +0100)
committerInki Dae <daeinki@gmail.com>
Sun, 13 Dec 2015 13:22:58 +0000 (22:22 +0900)
commitd16a11a006272ba3cad29f0bf2c087c28023249c
treecc96df3968c0cbe220a838f8868f9f939eddb32f
parente463b0695a0d52e280c8c42668b9c118c6d06d82
drm/exynos: fix clipping when scaling is enabled

This patch fixes calculation of src x/y offset for negative crtc x/y
values when scaling is enabled. This fixes possible IOMMU fault when
scaling is enabled.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_plane.c