From 13a274c947843cc5660dc1e8ec54093342acb18c Mon Sep 17 00:00:00 2001 From: Dhaval Patel Date: Fri, 20 Sep 2019 14:03:58 -0700 Subject: [PATCH] disp: msm: sde: update max display resolution with scale config Update max display resolution based on scale ratio support when decimation support is not present. Change-Id: If9a87a12c830a700f839fdf47f929e575b66d318 Signed-off-by: Dhaval Patel --- msm/sde/sde_hw_catalog.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/msm/sde/sde_hw_catalog.c b/msm/sde/sde_hw_catalog.c index 68b21a5471ff..bbdb8fd51b67 100644 --- a/msm/sde/sde_hw_catalog.c +++ b/msm/sde/sde_hw_catalog.c @@ -4127,14 +4127,15 @@ static int _sde_hardware_post_caps(struct sde_mdss_cfg *sde_cfg, sde_cfg->max_display_width = sde_cfg->max_sspp_linewidth * max_horz_deci; else - sde_cfg->max_display_width = sde_cfg->max_mixer_width * - sde_cfg->max_lm_per_display; + sde_cfg->max_display_width = sde_cfg->max_sspp_linewidth * + MAX_DOWNSCALE_RATIO; if (max_vert_deci) sde_cfg->max_display_height = MAX_DISPLAY_HEIGHT_WITH_DECIMATION * max_vert_deci; else - sde_cfg->max_display_height = MAX_DISPLAY_HEIGHT; + sde_cfg->max_display_height = MAX_DISPLAY_HEIGHT_WITH_DECIMATION + * MAX_DOWNSCALE_RATIO; sde_cfg->min_display_height = MIN_DISPLAY_HEIGHT; sde_cfg->min_display_width = MIN_DISPLAY_WIDTH;