aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorJoonyoung Shim <jy0922.shim@samsung.com>2012-12-14 01:48:22 -0500
committerInki Dae <inki.dae@samsung.com>2012-12-14 01:54:34 -0500
commit60a705a9f97b83b1daf03295bf123af84a46116a (patch)
treea5984d06fb0c917eca45fd0a284402898373da36 /drivers/gpu
parent1a4513b344fe1361ccb4936cf2c0526693297c33 (diff)
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')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_plane.c6
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[] = {
40 * CRTC ---------------- 40 * CRTC ----------------
41 * ^ start ^ end 41 * ^ start ^ end
42 * 42 *
43 * There are six cases from a to b. 43 * There are six cases from a to f.
44 * 44 *
45 * <----- SCREEN -----> 45 * <----- SCREEN ----->
46 * 0 last 46 * 0 last
@@ -104,16 +104,12 @@ int exynos_plane_mode_set(struct drm_plane *plane, struct drm_crtc *crtc,
104 if (crtc_x < 0) { 104 if (crtc_x < 0) {
105 if (actual_w) 105 if (actual_w)
106 src_x -= crtc_x; 106 src_x -= crtc_x;
107 else
108 src_x += crtc_w;
109 crtc_x = 0; 107 crtc_x = 0;
110 } 108 }
111 109
112 if (crtc_y < 0) { 110 if (crtc_y < 0) {
113 if (actual_h) 111 if (actual_h)
114 src_y -= crtc_y; 112 src_y -= crtc_y;
115 else
116 src_y += crtc_h;
117 crtc_y = 0; 113 crtc_y = 0;
118 } 114 }
119 115