Commit 60a705a9 authored by Joonyoung Shim's avatar Joonyoung Shim Committed by Inki Dae

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: default avatarJoonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 1a4513b3
...@@ -40,7 +40,7 @@ static const uint32_t formats[] = { ...@@ -40,7 +40,7 @@ static const uint32_t formats[] = {
* CRTC ---------------- * CRTC ----------------
* ^ start ^ end * ^ start ^ end
* *
* There are six cases from a to b. * There are six cases from a to f.
* *
* <----- SCREEN -----> * <----- SCREEN ----->
* 0 last * 0 last
...@@ -104,16 +104,12 @@ int exynos_plane_mode_set(struct drm_plane *plane, struct drm_crtc *crtc, ...@@ -104,16 +104,12 @@ int exynos_plane_mode_set(struct drm_plane *plane, struct drm_crtc *crtc,
if (crtc_x < 0) { if (crtc_x < 0) {
if (actual_w) if (actual_w)
src_x -= crtc_x; src_x -= crtc_x;
else
src_x += crtc_w;
crtc_x = 0; crtc_x = 0;
} }
if (crtc_y < 0) { if (crtc_y < 0) {
if (actual_h) if (actual_h)
src_y -= crtc_y; src_y -= crtc_y;
else
src_y += crtc_h;
crtc_y = 0; crtc_y = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment