Skip to content

Commit 8c772f0

Browse files
committed
drm: xlnx: zynqmp_dpsub: Expose plane ordering to userspace
While the DPSUB has a fixed plane order, it still makes sense to expose it to userspace to avoid hardcoding assumptions. Do so by adding an immutable zpos property to planes. Signed-off-by: Laurent Pinchart <[email protected]>
1 parent 650f120 commit 8c772f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/xlnx/zynqmp_disp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,7 @@ static int zynqmp_disp_create_planes(struct zynqmp_disp *disp)
12521252
drm_plane_helper_add(&layer->plane,
12531253
&zynqmp_disp_plane_helper_funcs);
12541254

1255+
drm_plane_create_zpos_immutable_property(&layer->plane, i);
12551256
if (zynqmp_disp_layer_is_gfx(layer))
12561257
drm_plane_create_alpha_property(&layer->plane);
12571258
}

0 commit comments

Comments
 (0)