msm: mdss: Consider FLIP flags while optimizing pixel fetch
While calculating source and destination rect of a pipe for the programmed ROI, consider FLIP flags set for the pipe. Change-Id: I631453c26f443b08a23556f83195d9914e05b41d Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
This commit is contained in:
parent
8aeee157f8
commit
f602fccdab
1 changed files with 11 additions and 2 deletions
|
@ -1139,8 +1139,17 @@ static int mdss_mdp_image_setup(struct mdss_mdp_pipe *pipe,
|
|||
|
||||
if ((pipe->mixer_left->type != MDSS_MDP_MIXER_TYPE_WRITEBACK) &&
|
||||
!pipe->mixer_left->ctl->is_video_mode &&
|
||||
!pipe->src_split_req)
|
||||
mdss_mdp_crop_rect(&src, &dst, &sci);
|
||||
!pipe->src_split_req) {
|
||||
mdss_mdp_crop_rect(&src, &dst, &sci);
|
||||
if (pipe->flags & MDP_FLIP_LR) {
|
||||
src.x = pipe->src.x + (pipe->src.x + pipe->src.w)
|
||||
- (src.x + src.w);
|
||||
}
|
||||
if (pipe->flags & MDP_FLIP_UD) {
|
||||
src.y = pipe->src.y + (pipe->src.y + pipe->src.h)
|
||||
- (src.y + src.h);
|
||||
}
|
||||
}
|
||||
|
||||
src_size = (src.h << 16) | src.w;
|
||||
src_xy = (src.y << 16) | src.x;
|
||||
|
|
Loading…
Add table
Reference in a new issue