Hi,
I would like to propose a patch for weston-imx to fix problem Weston backend-drm fails to propose mixed-mode state.
When play video with GStreamer in Weston with g2d renderer (on i.MX8QM), video view cannot be assigned to plane.
gst-launch-1.0 filesrc location=720p.mkv ! matroskademux \ ! h264parse ! v4l2h264dec ! queue \ ! waylandsink window-width=1280 window-height=720
Video view can be assigned to overlay plane.
Weston "cannot propose mixed mode" and video view use renderer composition.
# weston-debug drm-backend
...
[repaint] could not build planes-only state, trying mixed [state] cannot propose mixed mode for output HDMI-A-1 (0): previous fb has different size
...
[repaint] Using render-only state composition
[repaint] view 0xaaab0effb720 using renderer composition
Thank you for providing this valuable patch, we will evaluate this patch.
Best Regards
Zhiming