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

Commit 13a274c9 authored by Dhaval Patel's avatar Dhaval Patel
Browse files

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: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 9e60a485
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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;