diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2012-12-14 15:48:22 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2012-12-14 15:54:34 +0900 |
commit | 60a705a9f97b83b1daf03295bf123af84a46116a (patch) | |
tree | a5984d06fb0c917eca45fd0a284402898373da36 /drivers/gpu/drm | |
parent | 1a4513b344fe1361ccb4936cf2c0526693297c33 (diff) | |
download | blackbird-op-linux-60a705a9f97b83b1daf03295bf123af84a46116a.tar.gz blackbird-op-linux-60a705a9f97b83b1daf03295bf123af84a46116a.zip |
drm/exynos: fix fb offset calculation for plane
There is no any reason to change fb offset when CRTC is out of screen.
Also, this fixes a typing error.
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>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_plane.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c index 399b02663aef..83efc662d65a 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_plane.c +++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c @@ -40,7 +40,7 @@ static const uint32_t formats[] = { * CRTC ---------------- * ^ start ^ end * - * There are six cases from a to b. + * There are six cases from a to f. * * <----- SCREEN -----> * 0 last @@ -104,16 +104,12 @@ int exynos_plane_mode_set(struct drm_plane *plane, struct drm_crtc *crtc, if (crtc_x < 0) { if (actual_w) src_x -= crtc_x; - else - src_x += crtc_w; crtc_x = 0; } if (crtc_y < 0) { if (actual_h) src_y -= crtc_y; - else - src_y += crtc_h; crtc_y = 0; } |