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

Commit 37d10775 authored by Benjamin Chan's avatar Benjamin Chan Committed by Narendra Muppalla
Browse files

msm: sde: Disallow TP10 to P010 format conversion in rotator



MDSS 3.x rotator does not support format conversion between tightly
packed format and non-tightly packed format, or rotator will hang during
opertion. Add the check to disallow such operation.

CRs-Fixed: 1095273
Change-Id: I2506e2985ce7991791100c6f715d16adca45762c
Signed-off-by: default avatarBenjamin Chan <bkchan@codeaurora.org>
parent 015d3dc8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1414,7 +1414,8 @@ static bool sde_rotator_verify_format(struct sde_rot_mgr *mgr,
	}

	if ((in_fmt->is_yuv != out_fmt->is_yuv) ||
		(in_fmt->pixel_mode != out_fmt->pixel_mode)) {
		(in_fmt->pixel_mode != out_fmt->pixel_mode) ||
		(in_fmt->unpack_tight != out_fmt->unpack_tight)) {
		SDEROT_DBG("Rotator does not support CSC\n");
		return false;
	}