From 1f900aa5537a018fcc90e554a01022eaac9454bc Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 20 Mar 2026 13:23:14 -0500 Subject: [PATCH] drm: Check if underlays are present before trying to use them Trying to use an underlay will always fail if the output doesn't support them, so add a quick check here. Signed-off-by: Derek Foreman --- libweston/backend-drm/state-propose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/backend-drm/state-propose.c b/libweston/backend-drm/state-propose.c index e27f66c21..9407fdb29 100644 --- a/libweston/backend-drm/state-propose.c +++ b/libweston/backend-drm/state-propose.c @@ -728,7 +728,7 @@ drm_output_find_plane_for_view(struct drm_output_state *state, * only have underlay planes available, so it could use one * anyway. */ - if (!need_underlay) { + if (!need_underlay && output->has_underlay) { uint64_t tmp_next_lowest_zpos; if (current_lowest_zpos == DRM_PLANE_ZPOS_INVALID_PLANE) tmp_next_lowest_zpos = plane->zpos_max;