Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1712143b authored by Sree Sesha Aravind Vadrevu's avatar Sree Sesha Aravind Vadrevu
Browse files

msm: mdss: modify userspace src format during MSMFB_SET on rotator



The req->src.format field should be changed to the destination
format and propagated to the user so that appropriate buffer size
calculations for the destination buffer can be made. Note, this
only changes the user copy and the driver fetches the source buffer
based on source format.

CRs-fixed: 686496
Change-Id: I590829796c00aeea8e3d9b10578126dd7afe9c82
Signed-off-by: default avatarSree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
parent 55ca3fcf
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -537,6 +537,14 @@ int mdss_mdp_rotator_setup(struct msm_fb_data_type *mfd,
		if (rot && (req->id == MSMFB_NEW_REQUEST))
			mdss_mdp_rotator_finish(rot);
	}
	/*
	 * overwrite the src format for rotator to dst format
	 * for use by the user. On subsequent set calls, the
	 * user is expected to proivde the original src format
	 */
	req->src.format = mdss_mdp_get_rotator_dst_format(req->src.format,
		req->flags & MDP_ROT_90, req->flags & MDP_BWC_EN);

	mutex_unlock(&rotator_lock);
	return ret;
}