Skip to content

Commit fce3a51

Browse files
committed
drm/tegra: Add zpos property for cursor planes
As of commit 4dc5552 ("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 <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent d9a0a05 commit fce3a51

File tree

1 file changed

+1
-0
lines changed
  • drivers/gpu/drm/tegra

1 file changed

+1
-0
lines changed

drivers/gpu/drm/tegra/dc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,7 @@ static struct drm_plane *tegra_dc_cursor_plane_create(struct drm_device *drm,
957957
}
958958

959959
drm_plane_helper_add(&plane->base, &tegra_cursor_plane_helper_funcs);
960+
drm_plane_create_zpos_immutable_property(&plane->base, 255);
960961

961962
return &plane->base;
962963
}

0 commit comments

Comments
 (0)