Browse Source

Merge "disp: msm: sde: update wr_ptr_success state post wait"

qctecmdr 5 years ago
parent
commit
cf2991ac07
1 changed files with 3 additions and 0 deletions
  1. 3 0
      msm/sde/sde_encoder_phys_cmd.c

+ 3 - 0
msm/sde/sde_encoder_phys_cmd.c

@@ -1433,6 +1433,8 @@ static bool _sde_encoder_phys_cmd_needs_vsync_change(
 static int _sde_encoder_phys_cmd_wait_for_wr_ptr(
 static int _sde_encoder_phys_cmd_wait_for_wr_ptr(
 		struct sde_encoder_phys *phys_enc)
 		struct sde_encoder_phys *phys_enc)
 {
 {
+	struct sde_encoder_phys_cmd *cmd_enc =
+			to_sde_encoder_phys_cmd(phys_enc);
 	struct sde_encoder_wait_info wait_info = {0};
 	struct sde_encoder_wait_info wait_info = {0};
 	int ret;
 	int ret;
 	bool frame_pending = true;
 	bool frame_pending = true;
@@ -1463,6 +1465,7 @@ static int _sde_encoder_phys_cmd_wait_for_wr_ptr(
 		ret = frame_pending ? ret : 0;
 		ret = frame_pending ? ret : 0;
 	}
 	}
 
 
+	cmd_enc->wr_ptr_wait_success = (ret == 0) ? true : false;
 	return ret;
 	return ret;
 }
 }