summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Salido-Moreno <adrianm@codeaurora.org>2013-07-11 20:22:17 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:18:59 -0700
commit70fe07870fa8f419fd44a309846b218be54ca6ba (patch)
treede1f6bd3d8e13ea9a74871adb2a0db8d8e3b7895
parent527303663935c48e74a18a3ffecd77c7ae709c37 (diff)
msm: mdss: fix smp calculation for yuv frames
Shared memory pool calculations should be based on the width of the surface when calculating the stride of second plane. This may lead to unexpected SMP allocations leading to underflow or waste of SMP blocks. Change-Id: I4eb998cff4f05273b7aa0111c917fa151b71b140 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_pipe.c b/drivers/video/fbdev/msm/mdss_mdp_pipe.c
index eaef12b4188e..624046d1d49d 100644
--- a/drivers/video/fbdev/msm/mdss_mdp_pipe.c
+++ b/drivers/video/fbdev/msm/mdss_mdp_pipe.c
@@ -173,7 +173,7 @@ int mdss_mdp_smp_reserve(struct mdss_mdp_pipe *pipe)
} else if (mdata->has_decimation && pipe->src_fmt->is_yuv) {
ps.num_planes = 2;
ps.ystride[0] = pipe->src.w >> pipe->horz_deci;
- ps.ystride[1] = pipe->src.h >> pipe->vert_deci;
+ ps.ystride[1] = ps.ystride[0];
} else {
rc = mdss_mdp_get_plane_sizes(pipe->src_fmt->format,
pipe->src.w, pipe->src.h, &ps, 0);