瀏覽代碼

disp: msm: sde: fix qos lut index calculation for high refresh rate

Fix qos lut offset calculation based on the refresh rate index.
Current calculation is not accounting qos lut size for qseed and non
qseed lut types.

Change-Id: I281fa7b3a245ad9f4a3d2ba45bb5957c3900abd6
Signed-off-by: Prabhanjan Kandula <[email protected]>
Prabhanjan Kandula 4 年之前
父節點
當前提交
c35d5ca0cc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      msm/sde/sde_plane.c

+ 1 - 1
msm/sde/sde_plane.c

@@ -311,7 +311,7 @@ static void _sde_plane_set_qos_lut(struct drm_plane *plane,
 	psde->pipe_qos_cfg.danger_lut = perf->danger_lut[index];
 	psde->pipe_qos_cfg.danger_lut = perf->danger_lut[index];
 	psde->pipe_qos_cfg.safe_lut = perf->safe_lut[index];
 	psde->pipe_qos_cfg.safe_lut = perf->safe_lut[index];
 
 
-	creq_lut_index += (fps_index * SDE_QOS_LUT_USAGE_MAX);
+	creq_lut_index += (fps_index * SDE_QOS_LUT_USAGE_MAX * SDE_CREQ_LUT_TYPE_MAX);
 	psde->pipe_qos_cfg.creq_lut = perf->creq_lut[creq_lut_index];
 	psde->pipe_qos_cfg.creq_lut = perf->creq_lut[creq_lut_index];
 
 
 	trace_sde_perf_set_qos_luts(psde->pipe - SSPP_VIG0,
 	trace_sde_perf_set_qos_luts(psde->pipe - SSPP_VIG0,