OSDN Git Service

msm: mdss: correct bpp for TP10 in bandwidth calculations
authorIngrid Gallardo <ingridg@codeaurora.org>
Fri, 10 Feb 2017 19:20:00 +0000 (11:20 -0800)
committerGerrit - the friendly Code Review server <code-review@localhost>
Fri, 10 Feb 2017 19:37:43 +0000 (11:37 -0800)
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>
drivers/video/fbdev/msm/mdss_mdp_ctl.c

index ec37cd1..b8f7a74 100644 (file)
@@ -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