mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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:
parent
6da360614b
commit
6a12cf3410
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue