]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: Add zpos property for cursor planes
authorThierry Reding <treding@nvidia.com>
Wed, 10 Jun 2020 11:30:59 +0000 (13:30 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 16 Jun 2020 17:03:25 +0000 (19:03 +0200)
commit2a927d968279f49cc7f7ee18a11f8e0de22bdd6a
treed36d8bbf3e19e8cadeaa324ae7039a304d531e61
parentcd763a00d133dd6277523bc14237dd56e1116c28
drm/tegra: Add zpos property for cursor planes

As of commit 36faf256d0e8 ("drm: plane: Verify that no or all planes
have a zpos property") a warning is emitted if there's a mix of planes
with and without a zpos property.

On Tegra, cursor planes are always composited on top of all other
planes, which is why they never had a zpos property attached to them.
However, since the composition order is fixed, this is trivial to
remedy by simply attaching an immutable zpos property to them.

v3: do not hardcode zpos for overlay planes used as cursor (Dmitry)
v2: hardcode cursor plane zpos to 255 instead of 0 (Ville)

Reported-by: Jonathan Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c