diff options
| author | Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org> | 2014-07-01 14:44:11 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:31:33 -0700 |
| commit | fcef677bdaaab23fa2ebe446d1fa5cd77d908858 (patch) | |
| tree | 72dd3bbd43dd43bb251ef96c07873911e07f821e /drivers/video/fbdev | |
| parent | 480f1cb4f9e230f7b631f83c6d242221a9e5b8c7 (diff) | |
msm: mdss: modify userspace src format during MSMFB_SET on rotator
The req->src.format field should be changed to the destination
format and propagated to the user so that appropriate buffer size
calculations for the destination buffer can be made. Note, this
only changes the user copy and the driver fetches the source buffer
based on source format.
CRs-fixed: 686496
Change-Id: I590829796c00aeea8e3d9b10578126dd7afe9c82
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_rotator.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_rotator.c b/drivers/video/fbdev/msm/mdss_mdp_rotator.c index c23a1887cee8..6af3c7646bfd 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_rotator.c +++ b/drivers/video/fbdev/msm/mdss_mdp_rotator.c @@ -538,6 +538,14 @@ int mdss_mdp_rotator_setup(struct msm_fb_data_type *mfd, if (rot && (req->id == MSMFB_NEW_REQUEST)) mdss_mdp_rotator_finish(rot); } + /* + * overwrite the src format for rotator to dst format + * for use by the user. On subsequent set calls, the + * user is expected to proivde the original src format + */ + req->src.format = mdss_mdp_get_rotator_dst_format(req->src.format, + req->flags & MDP_ROT_90, req->flags & MDP_BWC_EN); + mutex_unlock(&rotator_lock); return ret; } |
