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

Commit 623f47b7 authored by Jin Li's avatar Jin Li
Browse files

drm/sde: update plane pitches when it's different than fb



Kernel DRM SDE driver doesn't know the alignment requirement from
user space, so it needs to be updated when pitches value when
they are different than fb value.

Change-Id: I392e247330980fcac87b6fbe49a289e0fc473d85
Signed-off-by: default avatarJin Li <jinl@codeaurora.org>
parent 8773554c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -649,12 +649,12 @@ static int _sde_format_populate_addrs_linear(
{
	unsigned int i;

	/* Can now check the pitches given vs pitches expected */
	/* Update layout pitches from fb */
	for (i = 0; i < layout->num_planes; ++i) {
		if (layout->plane_pitch[i] != fb->pitches[i]) {
			DRM_ERROR("plane %u expected pitch %u, fb %u\n",
			SDE_DEBUG("plane %u expected pitch %u, fb %u\n",
				i, layout->plane_pitch[i], fb->pitches[i]);
			return -EINVAL;
			layout->plane_pitch[i] = fb->pitches[i];
		}
	}