diff options
| author | Adrian Salido-Moreno <adrianm@codeaurora.org> | 2012-07-18 10:26:56 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:11:48 -0700 |
| commit | 3709ffc70596ad9ed6edd0ff4fa7604fd97cbd56 (patch) | |
| tree | 7012bc10f560cb371a18d78cdb6e816d213e39bb /drivers | |
| parent | ae237d00bee67852bcdbfd346cc704a7b6478e61 (diff) | |
mdss: display: remove check for odd dst offsets
MDSS does not support odd width, height or src offsets for YUV formats,
however odd coordinates are acceptable for dst offsets. Remove odd check
done for dst offsets
CRs-Fixed: 372900
Change-Id: I69230640f94bf080a8be4ea6d79f0901a7fa72cd
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_overlay.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_overlay.c b/drivers/video/fbdev/msm/mdss_mdp_overlay.c index 33e4543a06fb..995079045f20 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_overlay.c +++ b/drivers/video/fbdev/msm/mdss_mdp_overlay.c @@ -115,11 +115,10 @@ static int mdss_mdp_overlay_req_check(struct msm_fb_data_type *mfd, if (fmt->is_yuv) { if ((req->src_rect.x & 0x1) || (req->src_rect.y & 0x1) || (req->src_rect.w & 0x1) || (req->src_rect.h & 0x1)) { - pr_err("invalid odd src resolution\n"); + pr_err("invalid odd src resolution or coordinates\n"); return -EINVAL; } - if ((req->dst_rect.x & 0x1) || (req->dst_rect.y & 0x1) || - (req->dst_rect.w & 0x1) || (req->dst_rect.h & 0x1)) { + if ((req->dst_rect.w & 0x1) || (req->dst_rect.h & 0x1)) { pr_err("invalid odd dst resolution\n"); return -EINVAL; } |
