drm/exynos: fix to calculate CRTC shown via screen
authorJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 27 Sep 2012 10:25:21 +0000 (19:25 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 4 Oct 2012 01:10:53 +0000 (10:10 +0900)
commit2ab97921786f614bc9296722d8a2e2ce32d1760b
treea2c864f34e4ea7c081d2b707ad00d56929cddf16
parent58f6aad7d93f7ce009d371aa5065b70d593d3b17
drm/exynos: fix to calculate CRTC shown via screen

This patch is to exactly calculate CRTC shown via screen for all cases.
Refer exynos_plane_get_size() function for this. Also source position of
fb is fixed when start position of CRTC is negative number.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_plane.c