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

Commit dcbf3c2e authored by Krishnankutty Kolathappilly's avatar Krishnankutty Kolathappilly Committed by David Keitel
Browse files

msm: cpp: Fix green frames during batch mode for NV12 formats



The meta data offsets is not set to zero causing invalid buffers
being send out from cpp causing green frames in video during
batch mode for NV12 formats. If format is not ubwc, reset meta
data offset to zero in the set buffer group payload.

CRs-Fixed: 952085
Change-Id: I912b28d9ed7f02e5e87513d92d088adcbebe1d1b
Signed-off-by: default avatarKrishnankutty Kolathappilly <kkolatha@codeaurora.org>
parent 2263eb03
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -2332,10 +2332,8 @@ static int32_t msm_cpp_set_group_buffer_duplicate(struct cpp_device *cpp_dev,
			for (j = 0; j < PAYLOAD_NUM_PLANES; j++)
				*ptr++ = distance;

			if (ubwc_enabled) {
			for (j = 0; j < PAYLOAD_NUM_PLANES; j++)
					*ptr++ = distance;
			}
				*ptr++ = ubwc_enabled ? distance : 0;
		}
		if (rc)
			break;