Răsfoiți Sursa

disp: msm: sde: fix dsc hw resource reservation

In atomic test phase DSC Hw block should be allowed to be reserved
without checking the mode information. Mode information is not
available before bridge enable is called and this results into dsc
not programmed very first mode set.

Change-Id: Ia9ec9a3c9387e34a8bb1d98ee6932aef8725bc8c
Signed-off-by: Abhijit Kulkarni <[email protected]>
Abhijit Kulkarni 5 ani în urmă
părinte
comite
06ca9dd1e5
1 a modificat fișierele cu 3 adăugiri și 6 ștergeri
  1. 3 6
      msm/sde/sde_rm.c

+ 3 - 6
msm/sde/sde_rm.c

@@ -1667,13 +1667,10 @@ static int _sde_rm_make_dsc_rsvp(struct sde_rm *rm, struct sde_rm_rsvp *rsvp,
 				i, splash_display->dsc_ids[i]);
 				i, splash_display->dsc_ids[i]);
 	}
 	}
 
 
-	if ( reqs->hw_res.comp_info->comp_type ==
-			MSM_DISPLAY_COMPRESSION_DSC)
-		return  _sde_rm_reserve_dsc(rm, rsvp,
-				&reqs->hw_res.comp_info->dsc_info,
-				reqs->topology, hw_ids);
+	return  _sde_rm_reserve_dsc(rm, rsvp,
+			&reqs->hw_res.comp_info->dsc_info,
+			reqs->topology, hw_ids);
 
 
-	return 0;
 }
 }
 
 
 static int _sde_rm_make_vdc_rsvp(struct sde_rm *rm, struct sde_rm_rsvp *rsvp,
 static int _sde_rm_make_vdc_rsvp(struct sde_rm *rm, struct sde_rm_rsvp *rsvp,