From e61b51a0d6f88b7b25f8048e52c2aad64e408c36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Thu, 22 Mar 2012 15:25:44 +0200 Subject: [PATCH] gfx: overlay: Clip the overlay correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When the panel fitter is used the overlay output is scaled by the panel fitter as well. So to correctly clip the overlay to the screen edges user the information in crtc->mode instead of crtc->hwmode. Issue: ANDROID-1462 Signed-off-by: Ville Syrjälä Signed-off-by: Artem Bityutskiy --- drivers/staging/mrst/drv/mdfld_overlay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/mrst/drv/mdfld_overlay.c b/drivers/staging/mrst/drv/mdfld_overlay.c index c4e7f5d..cb346a1 100644 --- a/drivers/staging/mrst/drv/mdfld_overlay.c +++ b/drivers/staging/mrst/drv/mdfld_overlay.c @@ -911,8 +911,8 @@ mfld_overlay_update_plane(struct drm_plane *plane, struct drm_crtc *crtc, struct r = ovl_config_init(&c, crtc_x, crtc_y, crtc_w, crtc_h, src_x, src_y, src_w, src_h, - 0, 0, crtc->hwmode.crtc_hdisplay, - crtc->hwmode.crtc_vdisplay, + 0, 0, crtc->mode.crtc_hdisplay, + crtc->mode.crtc_vdisplay, plane->opts.chroma_siting, fb); if (r) return r; -- 2.7.4