From 5f0eaeb083370bcddf5585b859559f8b12ae28d5 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Mon, 26 Jun 2023 15:39:47 -0500 Subject: [PATCH] drm: Don't stack sprite planes above primary on init We don't need to do this, we can just leave them in the plane list until they're used. Also, doing so helps for when we want to move the primary_plane from the compositor to the outputs in the future. Signed-off-by: Derek Foreman --- libweston/backend-drm/drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/backend-drm/drm.c b/libweston/backend-drm/drm.c index 5388dbff..2052edb8 100644 --- a/libweston/backend-drm/drm.c +++ b/libweston/backend-drm/drm.c @@ -1206,7 +1206,7 @@ create_sprites(struct drm_device *device) if (drm_plane->type == WDRM_PLANE_TYPE_OVERLAY) weston_compositor_stack_plane(b->compositor, &drm_plane->base, - &b->compositor->primary_plane); + NULL); } wl_list_for_each (drm_plane, &device->plane_list, link)