summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorIngrid Gallardo <ingridg@codeaurora.org>2017-02-10 11:20:00 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-02-10 11:37:43 -0800
commit5754a5cb4c1a831ce3269c144a2a9790b92549cd (patch)
tree766cb5aa1a8d25faf2469def71af8358bdefe820 /drivers/video/fbdev
parent487ff740cb8a0111016b0da2616aa8104cb0d440 (diff)
msm: mdss: correct bpp for TP10 in bandwidth calculations
Current driver uses a 1.5 bpp for bandwidth calculations in any format with 420 chroma sample. This is wrong for TP10 pixel format, where we need to use 2 bpp. Fix this issue by making sure driver uses the correct bpp for this pixel format. Change-Id: I00c7349513fcb992565bf5ab1463900194a3d146 Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp_ctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_ctl.c b/drivers/video/fbdev/msm/mdss_mdp_ctl.c
index ec37cd1d5bb0..b8f7a74ceede 100644
--- a/drivers/video/fbdev/msm/mdss_mdp_ctl.c
+++ b/drivers/video/fbdev/msm/mdss_mdp_ctl.c
@@ -742,7 +742,8 @@ int mdss_mdp_get_pipe_overlap_bw(struct mdss_mdp_pipe *pipe,
*quota = fps * src.w * src_h;
- if (pipe->src_fmt->chroma_sample == MDSS_MDP_CHROMA_420)
+ if (pipe->src_fmt->chroma_sample == MDSS_MDP_CHROMA_420 &&
+ pipe->src_fmt->format != MDP_Y_CBCR_H2V2_TP10_UBWC)
/*
* with decimation, chroma is not downsampled, this means we
* need to allocate bw for extra lines that will be fetched