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>
This commit is contained in:
Adrian Salido-Moreno 2012-07-18 10:26:56 -07:00 committed by Stephen Boyd
parent 6da360614b
commit 6a12cf3410

View file

@ -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;
}