msm: mdss: fix chroma plane size requirement for nv12 ubwc format
Fix chroma plane size requirement for bit stream and meta data for NV12 ubwc format. Change-Id: Icae966ea296cc34673492d7adae0094303e92a0d Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
parent
6d1a9721f4
commit
9086f7ef89
1 changed files with 4 additions and 4 deletions
|
@ -396,8 +396,8 @@ static int mdss_mdp_get_ubwc_plane_size(struct mdss_mdp_format_params *fmt,
|
|||
|
||||
/* CbCr bitstream stride and plane size */
|
||||
ps->ystride[1] = ALIGN(width, 64);
|
||||
ps->plane_size[1] = ALIGN(ps->ystride[1] * ALIGN(height, 32),
|
||||
4096);
|
||||
ps->plane_size[1] = ALIGN(ps->ystride[1] *
|
||||
ALIGN(height / 2, 32), 4096);
|
||||
|
||||
/* Y meta data stride and plane size */
|
||||
ps->ystride[2] = ALIGN(DIV_ROUND_UP(width, 32), 64);
|
||||
|
@ -405,9 +405,9 @@ static int mdss_mdp_get_ubwc_plane_size(struct mdss_mdp_format_params *fmt,
|
|||
ALIGN(DIV_ROUND_UP(height, 8), 16), 4096);
|
||||
|
||||
/* CbCr meta data stride and plane size */
|
||||
ps->ystride[3] = ALIGN(DIV_ROUND_UP(width, 16), 64);
|
||||
ps->ystride[3] = ALIGN(DIV_ROUND_UP(width / 2, 16), 64);
|
||||
ps->plane_size[3] = ALIGN(ps->ystride[3] *
|
||||
ALIGN(DIV_ROUND_UP(height, 8), 16), 4096);
|
||||
ALIGN(DIV_ROUND_UP(height / 2, 8), 16), 4096);
|
||||
|
||||
} else if (fmt->format == MDP_RGBA_8888_UBWC ||
|
||||
fmt->format == MDP_RGB_565_UBWC) {
|
||||
|
|
Loading…
Add table
Reference in a new issue