Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: rcar-du: Lift z-pos restriction on primary plane for Gen3

There's no reason to require the primary plane to always be at the
bottom of the stack, as the VSP supports arbitrary ordering of planes,
and the KMS API doesn't have such a requirement either. Lift the
restriction.

As the primary plane can now be positioned arbitrarily, enable control
of its alpha channel as well.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tested-by: Tomohito Esaki <etom@igel.co.jp>

+3 -8
+3 -8
drivers/gpu/drm/rcar-du/rcar_du_vsp.c
··· 433 433 drm_plane_helper_add(&plane->plane, 434 434 &rcar_du_vsp_plane_helper_funcs); 435 435 436 - if (type == DRM_PLANE_TYPE_PRIMARY) { 437 - drm_plane_create_zpos_immutable_property(&plane->plane, 438 - 0); 439 - } else { 440 - drm_plane_create_alpha_property(&plane->plane); 441 - drm_plane_create_zpos_property(&plane->plane, 1, 1, 442 - num_planes - 1); 443 - } 436 + drm_plane_create_alpha_property(&plane->plane); 437 + drm_plane_create_zpos_property(&plane->plane, i, 0, 438 + num_planes - 1); 444 439 445 440 vsp->num_planes++; 446 441 }