Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5754a5cb authored by Ingrid Gallardo's avatar Ingrid Gallardo Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarIngrid Gallardo <ingridg@codeaurora.org>
parent 487ff740
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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