From: Denys Dmytriyenko <denis@denix.org>
To: Otavio Salvador <otavio.salvador@ossystems.com.br>
Cc: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH v5 3/3] weston: Bump version to 3.0.0
Date: Mon, 16 Oct 2017 16:11:45 -0400 [thread overview]
Message-ID: <20171016201144.GX9221@denix.org> (raw)
In-Reply-To: <CAP9ODKp4-ohZnA6tkDBaQKqUE_YDTLOQeGNpUTzV5zHH294quw@mail.gmail.com>
On Mon, Oct 16, 2017 at 03:30:34PM -0200, Otavio Salvador wrote:
> On Mon, Oct 16, 2017 at 3:21 PM, Fabien Lahoudere
> <fabien.lahoudere@collabora.co.uk> wrote:
> > Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
> > ---
> > .../wayland/weston/fix-missing-header.patch | 18 +++++++
> > ...t-pitch-correctly-for-subsampled-textures.patch | 55 ++++++++++++++++++++++
> > .../wayland/{weston_2.0.0.bb => weston_3.0.0.bb} | 17 +++----
> > 3 files changed, 82 insertions(+), 8 deletions(-)
> > create mode 100644 meta/recipes-graphics/wayland/weston/fix-missing-header.patch
> > create mode 100644 meta/recipes-graphics/wayland/weston/weston-gl-renderer-Set-pitch-correctly-for-subsampled-textures.patch
> > rename meta/recipes-graphics/wayland/{weston_2.0.0.bb => weston_3.0.0.bb} (89%)
> >
> > diff --git a/meta/recipes-graphics/wayland/weston/fix-missing-header.patch b/meta/recipes-graphics/wayland/weston/fix-missing-header.patch
> > new file mode 100644
> > index 0000000000..5db3a17393
> > --- /dev/null
> > +++ b/meta/recipes-graphics/wayland/weston/fix-missing-header.patch
> > @@ -0,0 +1,18 @@
> > +Fix missing header
> > +
> > +Upstream-Status: Pending
> > +
> > +Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
> > +
> > +Index: weston-3.0.0/shared/timespec-util.h
> > +===================================================================
> > +--- weston-3.0.0.orig/shared/timespec-util.h
> > ++++ weston-3.0.0/shared/timespec-util.h
> > +@@ -28,6 +28,7 @@
> > +
> > + #include <stdint.h>
> > + #include <assert.h>
> > ++#include <time.h>
> > +
> > + #define NSEC_PER_SEC 1000000000
> > +
> > diff --git a/meta/recipes-graphics/wayland/weston/weston-gl-renderer-Set-pitch-correctly-for-subsampled-textures.patch b/meta/recipes-graphics/wayland/weston/weston-gl-renderer-Set-pitch-correctly-for-subsampled-textures.patch
> > new file mode 100644
> > index 0000000000..69284a9616
> > --- /dev/null
> > +++ b/meta/recipes-graphics/wayland/weston/weston-gl-renderer-Set-pitch-correctly-for-subsampled-textures.patch
> > @@ -0,0 +1,55 @@
> > +Multi-plane sub-sampled textures have partial width/height, e.g.
> > +YUV420/I420 has a full-size Y plane, followed by a half-width/height U
> > +plane, and a half-width/height V plane.
> > +
> > +zwp_linux_dmabuf_v1 allows clients to pass an explicit pitch for each
> > +plane, but for wl_shm this must be inferred. gl-renderer was correctly
> > +accounting for the width and height when subsampling, but the pitch was
> > +being taken as the pitch for the first plane.
> > +
> > +This does not match the requirements for GStreamer's waylandsink, in
> > +particular, as well as other clients. Fix the SHM upload path to
> > +correctly set the pitch for each plane, according to subsampling.
> > +
> > +Tested with:
> > + $ gst-launch-1.0 videotestsrc ! waylandsink
> > +
> > +Upstream-status: Backport [https://patchwork.freedesktop.org/patch/180767/]
> > +
> > +Signed-off-by: Daniel Stone <daniels@collabora.com>
> > +Fixes: fdeefe42418 ("gl-renderer: add support of WL_SHM_FORMAT_YUV420")
> > +Reported-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
> > +Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103063
> > +
> > +---
> > + libweston/gl-renderer.c | 4 ++--
> > + 1 file changed, 2 insertions(+), 2 deletions(-)
> > +
> > +diff --git a/libweston/gl-renderer.c b/libweston/gl-renderer.c
> > +index 244ce309..40bf0bb6 100644
> > +--- a/libweston/gl-renderer.c
> > ++++ b/libweston/gl-renderer.c
> > +@@ -1445,14 +1445,13 @@ gl_renderer_flush_damage(struct weston_surface *surface)
> > + goto done;
> > + }
> > +
> > +- glPixelStorei(GL_UNPACK_ROW_LENGTH_EXT, gs->pitch);
> > +-
> > + if (gs->needs_full_upload) {
> > + glPixelStorei(GL_UNPACK_SKIP_PIXELS_EXT, 0);
> > + glPixelStorei(GL_UNPACK_SKIP_ROWS_EXT, 0);
> > + wl_shm_buffer_begin_access(buffer->shm_buffer);
> > + for (j = 0; j < gs->num_textures; j++) {
> > + glBindTexture(GL_TEXTURE_2D, gs->textures[j]);
> > ++ glPixelStorei(GL_UNPACK_ROW_LENGTH_EXT, gs->pitch / gs->hsub[j]);
> > + glTexImage2D(GL_TEXTURE_2D, 0,
> > + gs->gl_format[j],
> > + gs->pitch / gs->hsub[j],
> > +@@ -1477,6 +1476,7 @@ gl_renderer_flush_damage(struct weston_surface *surface)
> > + glPixelStorei(GL_UNPACK_SKIP_ROWS_EXT, r.y1);
> > + for (j = 0; j < gs->num_textures; j++) {
> > + glBindTexture(GL_TEXTURE_2D, gs->textures[j]);
> > ++ glPixelStorei(GL_UNPACK_ROW_LENGTH_EXT, gs->pitch / gs->hsub[j]);
> > + glTexSubImage2D(GL_TEXTURE_2D, 0,
> > + r.x1 / gs->hsub[j],
> > + r.y1 / gs->vsub[j],
> > diff --git a/meta/recipes-graphics/wayland/weston_2.0.0.bb b/meta/recipes-graphics/wayland/weston_3.0.0.bb
> > similarity index 89%
> > rename from meta/recipes-graphics/wayland/weston_2.0.0.bb
> > rename to meta/recipes-graphics/wayland/weston_3.0.0.bb
> > index 8160f5556d..ad0cdc2b0f 100644
> > --- a/meta/recipes-graphics/wayland/weston_2.0.0.bb
> > +++ b/meta/recipes-graphics/wayland/weston_3.0.0.bb
> > @@ -9,12 +9,13 @@ SRC_URI = "https://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
> > file://weston.png \
> > file://weston.desktop \
> > file://0001-make-error-portable.patch \
> > - file://0001-configure.ac-Fix-wayland-protocols-path.patch \
If this patch is no longer needed, should it be removed.
> > file://xwayland.weston-start \
> > file://0001-weston-launch-Provide-a-default-version-that-doesn-t.patch \
> > + file://weston-gl-renderer-Set-pitch-correctly-for-subsampled-textures.patch \
> > + file://fix-missing-header.patch \
>
> Those should be documented on commit log
And I'm not sure the one about "pitch" correction in gl-renderer is critical
enough to take it locally, is it?
> > "
> > -SRC_URI[md5sum] = "15f38945942bf2a91fe2687145fb4c7d"
> > -SRC_URI[sha256sum] = "b4e446ac27f118196f1609dab89bb3cb3e81652d981414ad860e733b355365d8"
> > +SRC_URI[md5sum] = "9c42a4c51a1b9f35d040fa9d45ada36d"
> > +SRC_URI[sha256sum] = "cde1d55e8dd70c3cbb3d1ec72f60e60000041579caa1d6a262bd9c35e93723a5"
> >
> > inherit autotools pkgconfig useradd distro_features_check
> > # depends on virtual/egl
> > @@ -76,7 +77,7 @@ PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam"
> >
> > do_install_append() {
> > # Weston doesn't need the .la files to load modules, so wipe them
> > - rm -f ${D}/${libdir}/libweston-2/*.la
> > + rm -f ${D}/${libdir}/libweston-3/*.la
> >
> > # If X11, ship a desktop file to launch it
> > if [ "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" ]; then
> > @@ -93,16 +94,16 @@ do_install_append() {
> > }
> >
> > PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', '${PN}-xwayland', '', d)} \
> > - libweston-2 ${PN}-examples"
> > + libweston-3 ${PN}-examples"
> >
> > FILES_${PN} = "${bindir}/weston ${bindir}/weston-terminal ${bindir}/weston-info ${bindir}/weston-launch ${bindir}/wcap-decode ${libexecdir} ${libdir}/${BPN}/*.so ${datadir}"
> >
> > -FILES_libweston-2 = "${libdir}/lib*${SOLIBS} ${libdir}/libweston-2/*.so"
> > -SUMMARY_libweston-2 = "Helper library for implementing 'wayland window managers'."
> > +FILES_libweston-3 = "${libdir}/lib*${SOLIBS} ${libdir}/libweston-3/*.so"
> > +SUMMARY_libweston-3 = "Helper library for implementing 'wayland window managers'."
> >
> > FILES_${PN}-examples = "${bindir}/*"
> >
> > -FILES_${PN}-xwayland = "${libdir}/libweston-2/xwayland.so"
> > +FILES_${PN}-xwayland = "${libdir}/libweston-3/xwayland.so"
> > RDEPENDS_${PN}-xwayland += "xserver-xorg-xwayland"
> >
> > RDEPENDS_${PN} += "xkeyboard-config"
> > --
> > 2.11.0
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
>
> --
> Otavio Salvador O.S. Systems
> http://www.ossystems.com.br http://code.ossystems.com.br
> Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
next prev parent reply other threads:[~2017-10-16 20:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-16 17:21 [PATCH v5 1/3] wayland : Bump to version 1.14.0 Fabien Lahoudere
2017-10-16 17:21 ` [PATCH v5 2/3] wayland-protocols: Fix installation patch issue Fabien Lahoudere
2017-10-16 17:21 ` [PATCH v5 3/3] weston: Bump version to 3.0.0 Fabien Lahoudere
2017-10-16 17:30 ` Otavio Salvador
2017-10-16 20:11 ` Denys Dmytriyenko [this message]
2017-10-16 20:34 ` Burton, Ross
2017-10-17 1:29 ` Denys Dmytriyenko
2017-10-17 8:21 ` Fabien Lahoudere
2017-10-17 10:31 ` Otavio Salvador
2017-10-17 22:59 ` Denys Dmytriyenko
2017-10-26 8:01 ` Fabien Lahoudere
2017-10-16 17:28 ` [PATCH v5 1/3] wayland : Bump to version 1.14.0 Fabien Lahoudere
2017-10-16 17:30 ` ✗ patchtest: failure for "[v5] wayland : Bump to version..." and 2 more Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171016201144.GX9221@denix.org \
--to=denis@denix.org \
--cc=openembedded-core@lists.openembedded.org \
--cc=otavio.salvador@ossystems.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.