compositor-drm: fix video playback hang after add fence in glrender
overlay plane do not need additional fence, add fence
only in primary plane.
Upstream-Status: Inappropriate [i.MX-specific]
Signed-off-by: Haihua Hu <jared.hu@nxp.com>
diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index b546622..2dc2a20 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -2646,7 +2646,7 @@
plane_state->dest_w);
ret |= plane_add_prop(req, plane, WDRM_PLANE_CRTC_H,
plane_state->dest_h);
- if (in_fence_fd > 0)
+ if (in_fence_fd > 0 && plane->type == WDRM_PLANE_TYPE_PRIMARY)
ret |= plane_add_prop(req, plane, WDRM_PLANE_IN_FENCE_FD, in_fence_fd);
if (plane_state->fb && plane_state->fb->dtrc_meta != plane->dtrc_meta