diff options
| author | Saurabh Shah <saurshah@codeaurora.org> | 2013-02-19 13:31:58 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:14:42 -0700 |
| commit | 9af25fa4acebfc2a3658ffca61d555718ba416d8 (patch) | |
| tree | 7cf5f13331b2005e043877a520ca2a91fc3216d8 | |
| parent | 7759cddeb50c6ac21f930a2caa742a30b54a66b5 (diff) | |
msm: mdss: Remove unnecessary dst_rect update.
Remove the unnecessary dst_rect update done as a part of
MSMFB_OVERLAY_SET ioctl in the rotation case.
The values for dst_rect are computed and supplied by userland.
Change-Id: I7702ab0ca0b778f163c2af569e96a4a86ae19ae4
Signed-off-by: Saurabh Shah <saurshah@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_overlay.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_overlay.c b/drivers/video/fbdev/msm/mdss_mdp_overlay.c index a5e70ad336a3..fa326aed7dd4 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_overlay.c +++ b/drivers/video/fbdev/msm/mdss_mdp_overlay.c @@ -84,11 +84,7 @@ static int mdss_mdp_overlay_req_check(struct msm_fb_data_type *mfd, return -EOVERFLOW; } - if (req->flags & MDSS_MDP_ROT_ONLY) { - /* dst res should match src res in rotation only mode*/ - req->dst_rect.w = req->src_rect.w; - req->dst_rect.h = req->src_rect.h; - } else { + if (!(req->flags & MDSS_MDP_ROT_ONLY)) { u32 dst_w, dst_h; if ((CHECK_BOUNDS(req->dst_rect.x, req->dst_rect.w, xres) || |
