[PATCH 0/2] fix remaining y-invert issues

Micah Fedke micah.fedke at collabora.co.uk
Wed Feb 1 20:28:22 UTC 2017


These two patches aim to finish off the work started by Pekka Paalanen on
https://phabricator.freedesktop.org/T7475 which deals with y-inversion issues.
Initial patch by Pekka here: https://patchwork.freedesktop.org/patch/96754/

In this series, the drm-backend has been updated to keep dmabufs with flags set
(eg. ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_Y_INVERT,
ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_INTERLACED or
ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_BOTTOM_FIRST) off of overlays, as it has no
way to transform them, currently.  Such buffers are pushed off to the
gl-renderer, which gained support for the
ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_Y_INVERT, in Pekka's previous patch.
End-to-end buffer transforms could help the drm-backend triage buffers between
overlays and the gl-renderer in a more universal way, in the future.

The weston-simple-dmabuf-v4l client has also been updated to scan the v4l2 api
to detect whether its incoming video stream is flipped, and communicate this to
the compositor via linux_buffer_params_v1.  Currently it only uses the
ZWP_LINUX_BUFFER_PARAMS_V1_FLAGS_Y_INVERT, as there is no flag for
horizontal inversion.

Micah Fedke (2):
  compositor-drm: don't put y-inverted / interlaced / bottom-first
    dmabufs on overlays
  clients: teach simple-dmabuf-v4l to deal with flipped input

 clients/simple-dmabuf-v4l.c | 54 ++++++++++++++++++++++++++++++++++++++-------
 libweston/compositor-drm.c  | 14 +++++++++++-
 2 files changed, 59 insertions(+), 9 deletions(-)

-- 
2.11.0



More information about the wayland-devel mailing list