Explorar o código

disp: msm: sde: add vig formats before qseed and csc initializations

Setup vig pipe makes an early return if csc and qseed are
not supported. This change moves addition of vig formats
before intializing qseed and csc.

Change-Id: I2eb651f7bbd81757a9de23501fda51a510d0e673
Signed-off-by: santosh <[email protected]>
santosh %!s(int64=5) %!d(string=hai) anos
pai
achega
fb72c8faa8
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      msm/sde/sde_hw_catalog.c

+ 3 - 3
msm/sde/sde_hw_catalog.c

@@ -1434,6 +1434,9 @@ static int _sde_sspp_setup_vigs(struct device_node *np,
 			set_bit(SDE_PERF_SSPP_QOS_8LVL, &sspp->perf_features);
 		vig_count++;
 
+		sblk->format_list = sde_cfg->vig_formats;
+		sblk->virt_format_list = sde_cfg->virt_vig_formats;
+
 		if ((sde_cfg->qseed_type == SDE_SSPP_SCALER_QSEED2) ||
 		    (sde_cfg->qseed_type == SDE_SSPP_SCALER_QSEED3) ||
 		    (sde_cfg->qseed_type == SDE_SSPP_SCALER_QSEED3LITE)) {
@@ -1449,9 +1452,6 @@ static int _sde_sspp_setup_vigs(struct device_node *np,
 
 		_sde_sspp_setup_vigs_pp(props, sde_cfg, sspp);
 
-		sblk->format_list = sde_cfg->vig_formats;
-		sblk->virt_format_list = sde_cfg->virt_vig_formats;
-
 		if (sde_cfg->true_inline_rot_rev > 0) {
 			set_bit(SDE_SSPP_TRUE_INLINE_ROT, &sspp->features);
 			sblk->in_rot_format_list = sde_cfg->inline_rot_formats;