ソースを参照

Merge "disp: msm: sde: update ds atomic check for pu and cwb"

qctecmdr 6 年 前
コミット
c4ae73b9b8
2 ファイル変更2 行追加2 行削除
  1. 1 1
      msm/sde/sde_encoder.c
  2. 1 1
      msm/sde/sde_encoder_phys_wb.c

+ 1 - 1
msm/sde/sde_encoder.c

@@ -893,7 +893,7 @@ static int _sde_encoder_atomic_check_pu_roi(struct sde_encoder_virt *sde_enc,
 {
 	int ret = 0;
 
-	if (drm_atomic_crtc_needs_modeset(crtc_state)) {
+	if (crtc_state->mode_changed || crtc_state->active_changed) {
 		struct sde_rect mode_roi, roi;
 
 		mode_roi.x = 0;

+ 1 - 1
msm/sde/sde_encoder_phys_wb.c

@@ -670,7 +670,7 @@ static int _sde_enc_phys_wb_validate_cwb(struct sde_encoder_phys *phys_enc,
 		if (cstate->ds_cfg[i].scl3_cfg.enable) {
 			ds_in_use = true;
 			ds_outw += cstate->ds_cfg[i].scl3_cfg.dst_width;
-			ds_outh += cstate->ds_cfg[i].scl3_cfg.dst_height;
+			ds_outh = cstate->ds_cfg[i].scl3_cfg.dst_height;
 		}
 
 	/* if ds in use check wb roi against ds output dimensions */