disp: msm: sde: increase max number of mixers to 4

Increase the maximum number of mixers per crtc to 4 to
support 4LM use case. This change also increases the number
of data path to 4 to support 4LM in continuous splash handoff.

Change-Id: I4655017dcb405fad69513bebb8fd7f848fc5873d
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
此提交包含在:
Amine Najahi
2019-12-01 00:29:32 -05:00
父節點 80a1238f16
當前提交 4fef803aff
共有 6 個檔案被更改,包括 19 行新增20 行删除

查看文件

@@ -284,7 +284,7 @@ struct sde_crtc {
u32 num_ctls;
u32 num_mixers;
bool mixers_swapped;
struct sde_crtc_mixer mixers[CRTC_DUAL_MIXERS];
struct sde_crtc_mixer mixers[MAX_MIXERS_PER_CRTC];
struct drm_pending_vblank_event *event;
u32 vsync_count;
@@ -410,8 +410,8 @@ struct sde_crtc_state {
bool is_ppsplit;
struct sde_rect crtc_roi;
struct sde_rect lm_bounds[CRTC_DUAL_MIXERS];
struct sde_rect lm_roi[CRTC_DUAL_MIXERS];
struct sde_rect lm_bounds[MAX_MIXERS_PER_CRTC];
struct sde_rect lm_roi[MAX_MIXERS_PER_CRTC];
struct msm_roi_list user_roi_list, cached_user_roi_list;
struct msm_property_state property_state;
@@ -482,8 +482,7 @@ static inline int sde_crtc_get_mixer_width(struct sde_crtc *sde_crtc,
if (cstate->num_ds_enabled)
mixer_width = cstate->ds_cfg[0].lm_width;
else
mixer_width = (sde_crtc->num_mixers == CRTC_DUAL_MIXERS ?
mode->hdisplay / CRTC_DUAL_MIXERS : mode->hdisplay);
mixer_width = mode->hdisplay / sde_crtc->num_mixers;
return mixer_width;
}