disp: msm: sde: correct line time to include compression ratio

Current computation of line time does not include compression ratio
from either DSC or VDC. This change stores source bpp and target bpp in
sde_crtc during sde encoder mode set to be used while calculating line
time.

Change-Id: Ib1e045dce17fcf006447d4562b402cc3f214ed8c
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
这个提交包含在:
Samantha Tran
2020-03-26 19:47:27 -07:00
提交者 Gerrit - the friendly Code Review server
父节点 25062d1965
当前提交 7401ef1995
修改 7 个文件,包含 83 行新增6 行删除

查看文件

@@ -2813,7 +2813,10 @@ static void _sde_plane_setup_uidle(struct drm_crtc *crtc,
struct sde_rect *src, struct sde_rect *dst)
{
struct sde_hw_pipe_uidle_cfg cfg;
u32 line_time = sde_get_linetime(&crtc->mode); /* nS */
struct sde_crtc *sde_crtc = to_sde_crtc(crtc);
u32 line_time = sde_get_linetime(&crtc->mode,
sde_crtc->src_bpp, sde_crtc->target_bpp); /* nS */
u32 fal1_target_idle_time_ns =
psde->catalog->uidle_cfg.fal1_target_idle_time * 1000; /* nS */
u32 fal10_target_idle_time_ns =