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

Commit 82e58855 authored by Laurent Pinchart's avatar Laurent Pinchart
Browse files

drm: omapdrm: Reset the zorder property when disabling a plane



Whether to reset plane properties at disable time isn't well-defined in
DRM, but resetting only part of them is probably as bad as it can get.
Make the behaviour coherent by resetting the zorder property in addition
to the rotation property.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
parent 2debab97
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -259,6 +259,9 @@ static int omap_plane_disable(struct drm_plane *plane)
	struct omap_plane *omap_plane = to_omap_plane(plane);

	omap_plane->win.rotation = BIT(DRM_ROTATE_0);
	omap_plane->info.zorder = plane->type == DRM_PLANE_TYPE_PRIMARY
				? 0 : omap_plane->id;

	return omap_plane_set_enable(plane, false);
}