Sfoglia il codice sorgente

disp: msm: dp: fix max slice width check for dsc

When calculating the number of DSC slices based on the source
and sink capabilities, the driver is using an incorrect check
for max slice width which results in increasing the num of
slices if the width is an exact multiple of 2560.

Change-Id: Ia854c4a2d436144165fb52beb04b5e0d1678d0f6
Signed-off-by: Rajkumar Subbiah <[email protected]>
Rajkumar Subbiah 2 anni fa
parent
commit
af85165fe6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      msm/dp/dp_panel.c

+ 1 - 1
msm/dp/dp_panel.c

@@ -1540,7 +1540,7 @@ static int dp_panel_dsc_prepare_basic_params(
 	 * 2. The ppr per slice cannot exceed the maximum.
 	 * 3. The number of slices must be explicitly supported.
 	 */
-	while (slice_width >= max_slice_width ||
+	while (slice_width > max_slice_width ||
 			ppr_per_slice > peak_throughput ||
 			!dp_panel_check_slice_support(
 			comp_info->dsc_info.slice_per_pkt, slice_caps_1,