]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Correct the plane enumeration order (v2)
authorShirish S <shirish.s@amd.com>
Tue, 27 Feb 2018 09:18:13 +0000 (14:48 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 20:16:34 +0000 (15:16 -0500)
commit90ed164f880636630c1dc98a6fe67a3047cfd1e5
tree98212af32fc34ba46fab6341ac006a022dc35672
parenta1c29d55a42551da9a66c0e4ebae30d423de82df
drm/amd/display: Correct the plane enumeration order (v2)

The order of planes is given by the order they are enumerated
by kms.
Planes with a higher ID appears above planes with a lower ID.

Currently the planes are enumerated in the wrong order,
putting the nv12 only plane after the two RGBA planes.

This patch corrects the plane enumeration order such that all
the overlay planes are initialized first then the primary planes.

Due to this change in order the dc_add_plane_to_context() shall
receive the planes in reverse order hence this patch reverses
the parsing of planes in DM side itself.

v2: drop local reverse macro for upstream

Signed-off-by: Shirish S <shirish.s@amd.com>
Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c