Re: Sub 16ms render but missing swap

2023-10-18 Thread Emmanuel Gil Peyrot
Hi, On Wed, Oct 18, 2023 at 12:00:45AM +, Joe M wrote: > In a GLES app wired up to Weston/Wayland using EGL, we're calling > `eglSwapBuffers` in a render loop that takes about 12-13ms to draw our > content, based on CPU timing the run loop. However, the call to swap incurs a > duration of

Re: Problem with mmap keyboard.

2023-10-04 Thread Emmanuel Gil Peyrot
On Wed, Oct 04, 2023 at 06:19:30PM +, Fred vS wrote: > Hello. Hi, > > > I try to make work the "Keyboard event" step from the Wayland-book but the C > demo crash at loading. > > The problem comes from the mapping: with that error: > > > Line 301: wl_keyboard_keymap: Assertion map_shm

Re: Need support to display application at (0, 0) position on Weston desktop

2023-07-13 Thread Emmanuel Gil Peyrot
Hi, On Wed, Jul 12, 2023 at 10:24:22PM +0700, huy nguyen wrote: […] > In my application, I want to overlay an MPV video window on another > application so that users can view both video content and other application > static content so that a fullscreen MPV is not suitable. > Is it possible to

Fwd: Empty IN_FORMATS in sun4i-drm

2021-12-14 Thread Emmanuel Gil Peyrot
Hi, this message I sent earlier about the kernel is also relevant to this mailing list, I forgot to CC it: - Forwarded message from Emmanuel Gil Peyrot - Date: Tue, 14 Dec 2021 13:02:48 +0100 From: Emmanuel Gil Peyrot To: Maxime Ripard , Chen-Yu Tsai , dri-de...@lists.freedesktop.org

Re: surface-suspension wayland protcool development status?

2021-11-11 Thread Emmanuel Gil Peyrot
e any in Fedora. [1] https://linkmauve.fr/dev/glfw2to3/ -- Emmanuel Gil Peyrot signature.asc Description: PGP signature

Re: FW: xrandr and xwayland

2021-08-03 Thread Emmanuel Gil Peyrot
relies on the iio subsystem to provide accelerometer data, and then automatically rotates once it detects the display is sideways. Hope it’ll help. :) [1] https://lists.freedesktop.org/archives/wayland-devel/2016-August/030396.html -- Emmanuel Gil Peyrot signature.asc Description: PGP signature

[PATCH wayland] cursor: Use memfd_create() when available

2019-02-16 Thread Emmanuel Gil Peyrot
to shrink the contents, potentially causing a SIGBUS when they try reading it. This patch is best viewed with the -w option of git log -p. Signed-off-by: Emmanuel Gil Peyrot --- configure.ac | 2 +- cursor/os-compatibility.c | 56 --- 2 files changed

Re: weston: Add config option to enable pixman-based rendering

2018-09-18 Thread Emmanuel Gil Peyrot
> +.TP 7 > +.BI "use-pixman=" true > +Enables pixman-based rendering for all outputs on backends that support it. > +Boolean, defaults to > +.BR false . > +There is also a command line option to do the same. > > .SH "LIBINPUT SECTION" > The >

Re: [PATCH] xwm: Update input region on resize

2018-03-06 Thread Emmanuel Gil Peyrot
pe on resize, > fixing the problem. This fixes the issue I had with Firefox, thanks! Reviewed-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> Tested-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> > --- > xwayland/window-manager.c | 46 +++

[PATCH weston] autoconf: Remove configure line forgotten in bb707dc0fe331c9af112a0552b7aa6fde755dd83

2018-03-05 Thread Emmanuel Gil Peyrot
Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- configure.ac | 1 - 1 file changed, 1 deletion(-) diff --git a/configure.ac b/configure.ac index a0a7a271..0b326ccc 100644 --- a/configure.ac +++ b/configure.ac @@ -718,6 +718,5 @@ AC_MSG_RESULT([ LCMS2 S

[PATCH weston] xwm: Fix icon surface ownership

2018-01-24 Thread Emmanuel Gil Peyrot
ing it there when no frame has been created yet. Fixes https://lists.freedesktop.org/archives/wayland-devel/2018-January/036655.html Reported-by: Derek Foreman <der...@osg.samsung.com> Tested-by: Derek Foreman <der...@osg.samsung.com> Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmau

[PATCH] Unconditionally add linux-dmabuf’s protocol to BUILT_SOURCES

2018-01-07 Thread Emmanuel Gil Peyrot
This was preventing weston-info from building if both weston-simple-dmabuf-drm and weston-simple-dmabuf-v4l2 were disabled at build-time. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> Reported-by: Cedric Sodhi <man...@openmail.cc> Tested-by: Cedric Sodhi <man

Re: [PATCH weston v4] xwm: Add icon support to the frame

2017-12-03 Thread Emmanuel Gil Peyrot
On Fri, Dec 01, 2017 at 09:47:57PM +0100, Quentin Glidic wrote: > On 12/1/17 7:20 PM, Emmanuel Gil Peyrot wrote: > > This fetches the _NET_WM_ICON property of the X11 window, and use the > > first image found as the frame icon. > > > > This has been tested with various

[PATCH weston v4] xwm: Add icon support to the frame

2017-12-01 Thread Emmanuel Gil Peyrot
-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> Reviewed-by: Quentin Glidic <sardemff7+...@sardemff7.net> --- clients/window.c | 4 +-- libweston/compositor-wayland.c | 2 +- shared/cairo-util.h| 2 +- shared/frame.c

Re: [PATCH wayland] connection: Print the content of arrays in closures

2017-12-01 Thread Emmanuel Gil Peyrot
On Fri, Dec 01, 2017 at 05:08:15PM +, Daniel Stone wrote: > Hi, > > On 10 July 2017 at 19:28, Emmanuel Gil Peyrot > <emmanuel.pey...@collabora.com> wrote: > > The current behaviour when WAYLAND_DEBUG is set is to print “array”, > > which is quite unhelpful. &g

[PATCH weston 12/13] main, compositor: Add a stereoscopy config option.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> It can take the values "", "frame-packing", "top-and-bottom" and "side-by-side". Any mode not corresponding to one of these will be discarded. Signed-off-by: Emmanuel Gil Peyrot <linkma.

[PATCH weston 10/13] gl-renderer: Add stereoscopy support.

2017-11-14 Thread Emmanuel Gil Peyrot
Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- libweston/compositor.c | 5 +- libweston/gl-renderer.c | 135 ++-- libweston/gl-renderer.h | 6 +++ 3 files changed, 128 insertions(+), 18 deletions(-) diff --git a/lib

[PATCH weston 13/13] compositor-drm: Select stereo modes based on the configuration.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- libweston/compositor-drm.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/libweston/compositor-drm.c

[PATCH weston 06/13] compositor: Store the stereoscopy layout of an output.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Backends are responsible for setting it to the expected value, as specified in wp_stereoscopy. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- libweston/compositor.c | 1 + libweston/compositor.h | 1 + 2 file

[PATCH weston 07/13] compositor-drm: Enable the stereo capability.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> This makes DRM list the stereo modes in addition to the usual mono ones, it’s now just a matter of modeset whether we enable stereo or not. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- libweston/composit

[PATCH weston 11/13] compositor-drm: Cursors need to be broken with stereoscopy.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> There is only one cursor plane per output, and we need to render two cursors on stereo outputs, so currently set cursors_are_broken globally. In the future, this option could be changed to be per-output to keep the plane optimi

[PATCH weston 08/13] compositor-drm: Print stereo modes as such.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- libweston/compositor-drm.c | 38 +++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/libweston/compositor-drm.c

[PATCH weston 09/13] compositor-drm: Create a correctly-sized gbm buffer.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Makes frame packing modes work, the normal-sized buffer was way too small to contain both images. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- libweston/compositor-drm.c | 13 +++-- 1 file

[PATCH 0/13] Add stereoscopy support

2017-11-14 Thread Emmanuel Gil Peyrot
] and weston[3] for easier testing. Thanks for your feedback! [1] https://linkmauve.fr/blog/post/2017/09/08/adding-a-third-dimension-to-wayland/ [2] https://gitlab.collabora.com/emmanuel/wayland-protocols/tree/stereoscopy [3] https://gitlab.collabora.com/emmanuel/weston/tree/stereoscopy Emmanuel Gil

[PATCH weston 05/13] compositor: Display the correct default buffer.

2017-11-14 Thread Emmanuel Gil Peyrot
When a backend isn’t stereoscopy-aware, the compositor itself will calculate the correct offset. Backends which are aware of stereoscopy should do this computation themselves, in the correct place. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- libweston/compositor.

[PATCH weston 02/13] clients: Add a simple-stereo client, based on simple-shm.

2017-11-14 Thread Emmanuel Gil Peyrot
Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- Makefile.am | 22 +- clients/simple-stereo.c | 647 2 files changed, 667 insertions(+), 2 deletions(-) create mode 100644 clients/simple-stereo.c diff

[PATCH wayland-protocols 01/13] Add stereoscopy protocol

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> This protocols allows clients to describe the stereoscopic layout of their surfaces, to make the compositor render all sides on 3DTVs or HMDs. It also gives a way for the compositor to describe the native stereo layout of the curren

[PATCH weston 03/13] compositor: Implement stereoscopy as a noop.

2017-11-14 Thread Emmanuel Gil Peyrot
Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- libweston/compositor.c | 140 + libweston/compositor.h | 11 2 files changed, 151 insertions(+) diff --git a/libweston/compositor.c b/libweston/compositor.c index 71

[PATCH weston 04/13] compositor: Add a stereoscopy capability.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Will be used by backends to say they are compatible or not. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- libweston/compositor.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libweston/compositor.h

Re: [PATCH wayland] cursor: Use shm_open() instead of XDG_RUNTIME_DIR files

2017-10-19 Thread Emmanuel Gil Peyrot
older than 3.17 and for other POSIX systems; shm_open(3) is fine for that but your implementation is naive, you should generate a random name, fail if it already exists, and retry with another name in that case. Thanks, -- Emmanuel Gil Peyrot signature.asc Description: PGP signature ___

[PATCH weston] weston-info: Add support for zwp_linux_dmabuf_v1

2017-10-03 Thread Emmanuel Gil Peyrot
This now prints each (format, modifier) tuple, to show which ones the compositor sends to its clients. It is only implemented for version 3+, since I didn’t have any compositor implementing previous versions, and the old `format` event is deprecated anyway. Signed-off-by: Emmanuel Gil Peyrot

[PATCH wayland] connection: Print the content of arrays in closures

2017-07-10 Thread Emmanuel Gil Peyrot
description. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- src/connection.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/connection.c b/src/connection.c index 5c3d187..d616ddd 100644 --- a/src/connection.c +++ b/src/connec

[PATCH weston 4/4] tests: Mark tests as used, so they don’t get removed at link-time.

2017-04-14 Thread Emmanuel Gil Peyrot
Without this attribute, the test macros were making Weston fail to build with LTO enabled. Signed-off-by: Markus Trippelsdorf <mar...@trippelsdorf.de> Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Tested-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.

[PATCH weston 4/4] tests: Mark tests as used, so they don’t get removed at link-time.

2017-04-14 Thread Emmanuel Gil Peyrot
Without this attribute, the test macros were making Weston fail to build with LTO enabled. Signed-off-by: Markus Trippelsdorf <mar...@trippelsdorf.de> Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Tested-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.

[PATCH wayland 2/4] tests: Mark tests as used, so they don’t get removed at link-time.

2017-04-14 Thread Emmanuel Gil Peyrot
Without this attribute, these macros were making Weston’s tests fail to build with LTO enabled. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94602 Signed-off-by: Markus Trippelsdorf <mar...@trippelsdorf.de> Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.co

[PATCH wayland 1/4] tests: Add one more indentation level to some macros

2017-04-14 Thread Emmanuel Gil Peyrot
This is a preparatory patch for the next one. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- tests/test-runner.h | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/test-runner.h b/tests/test-runner.h index 6

[PATCH weston 3/4] tests: Add one more indentation level to some macros

2017-04-14 Thread Emmanuel Gil Peyrot
This is a preparatory patch for the next one. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- tests/weston-test-runner.h | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/tests/weston-test-runner.h b

[PATCH weston v2] desktop-shell: Position maximized surfaces on the correct output.

2017-04-04 Thread Emmanuel Gil Peyrot
/maximize dance being done at each commit. This was introduced in 8f9d90a84bb2888b074fea93c4a28778bc6439c6. Changes since v1: - Fix the actual issue instead of a symptom. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- desktop-shell/shell.c | 6 +++--- 1 file chan

[PATCH weston] desktop-shell: Position maximized surfaces on the correct output.

2017-04-04 Thread Emmanuel Gil Peyrot
. This fix simply leaves the shell surface’s output as it was before the unmaximize operation. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- desktop-shell/shell.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index c9

[PATCH weston v3] xwm: Add icon support to the frame

2017-04-04 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> This fetches the _NET_WM_ICON property of the X11 window, and use the first image found as the frame icon. This has been tested with various X11 programs, and improves usability and user-friendliness a bit. Changes since v1: - C

[PATCH weston v4] compositor-drm: pageflip timeout implementation

2017-03-07 Thread Emmanuel Gil Peyrot
callback. - Also display the output name in case the timer fires. v4: - Reordered a forgotten timer rearming after its drmModePageFlip(). Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=83884 Signed-off-by: Frederic Plourde Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Re

[PATCH weston v3] compositor-drm: pageflip timeout implementation

2017-03-06 Thread Emmanuel Gil Peyrot
callback. - Also display the output name in case the timer fires. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=83884 Signed-off-by: Frederic Plourde Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Reviewed-by: Daniel Stone <dani...@collabora.com> --- compo

Re: [PATCH weston v2] compositor-drm: pageflip timeout implementation

2017-02-28 Thread Emmanuel Gil Peyrot
On Tue, Feb 28, 2017 at 06:35:11PM +, Emmanuel Gil Peyrot wrote: > Weston will not repaint until previous update has been acked by a > pageflip event coming from the drm driver. However, some buggy drivers > won’t return those events or will stop sending them at some point and > W

[PATCH weston v2] compositor-drm: pageflip timeout implementation

2017-02-28 Thread Emmanuel Gil Peyrot
and success cases in drm_output_pageflip_timer_create() to be more in line with the rest of the code. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=83884 Signed-off-by: Frederic Plourde Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- compositor/main.c

[PATCH weston] config-parser: Export weston_config_next_section

2017-02-21 Thread Emmanuel Gil Peyrot
the configuration file. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- shared/config-parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/config-parser.c b/shared/config-parser.c index e2b5fa25..2a595b1f 100644 --- a/shared/config-parser.c +++ b/shared/

Re: [PATCH weston] xwm: fix intermittent half-drawn decorations problem

2017-01-17 Thread Emmanuel Gil Peyrot
indicates it would be better > used, however it was not strictly necessary to fix the problem in my > experiments. > > Signed-off-by: Pekka Paalanen <pekka.paala...@collabora.co.uk> I tried dolphin-emu which was affected by this problem due to changing its title to display the

[PATCH weston] desktop-shell: Stop asking for a RGB565 background

2017-01-15 Thread Emmanuel Gil Peyrot
This makes the background image look much nicer, at the expense of slightly more memory bandwidth used. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- clients/desktop-shell.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/clients/desktop-shell.c b/clients/desktop-s

[PATCH weston v2] compositor-drm: pageflip timeout implementation

2017-01-06 Thread Emmanuel Gil Peyrot
Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- compositor/main.c | 2 ++ libweston/compositor-drm.c | 64 ++ libweston/compositor-drm.h | 7 + man/weston.ini.man | 5 4 files changed, 78 inserti

Re: How to do mode setting in Wayland

2016-12-23 Thread Emmanuel Gil Peyrot
, you will have to generate a modeline using the `cvt` tool and paste that in the mode option, see `man weston.ini` and `man cvt` for more information. > > > Thanks, > Lingyun > -- Emmanuel Gil Peyrot signature.asc Description: PGP signature

[PATCH weston v2] xwm: Add icon support to the frame

2016-12-07 Thread Emmanuel Gil Peyrot
frame_button_create_from_surface() internally. - Removed a check that should never have been commited. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- As for checking frame for NULL, there is no codepath in this file that could lead to this situation, maybe we should add an assert but I doubt it would cat

[PATCH weston] autoconf: Fix AC_MSG_RESULT message when disabling features

2016-12-04 Thread Emmanuel Gil Peyrot
Some variables were previously only set inside conditions, making their output empty. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- configure.ac | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 1e251bf..8aba62c

[PATCH weston] xwm: Add icon support to the frame

2016-12-04 Thread Emmanuel Gil Peyrot
This fetches the _NET_WM_ICON property of the X11 window, and use the first image found as the frame icon. This has been tested with various X11 programs, and improves usability and user-friendliness a bit. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- clients/wi

Re: [PATCH weston] gl-renderer: Use EGL_KHR_no_config_context

2016-09-27 Thread Emmanuel Gil Peyrot
ex 6e36996..50964a8 100644 > --- a/libweston/weston-egl-ext.h > +++ b/libweston/weston-egl-ext.h > @@ -152,5 +152,8 @@ typedef EGLSurface (EGLAPIENTRYP > PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLD > #define EGL_PLATFORM_X11_KHR 0x31D5 > #endif > > +#ifndef EGL_NO_CONFIG_KHR

[PATCH weston] compositor-wayland: Only destroy the egl_window when using GLES.

2016-09-01 Thread Emmanuel Gil Peyrot
This prevents a segfault when unplugging an output when using pixman. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- libweston/compositor-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/compositor-wayland.c b/libweston/comp

[PATCH weston] gl-renderer: Add a #define to obtain the prototypes from the gl2 header.

2016-09-01 Thread Emmanuel Gil Peyrot
This prevents a segfault when running on Mesa master, due to the GLES2 symbols not being declared with the correct prototype (or at all). Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- libweston/gl-renderer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib

Re: [PATCH weston] libweston-desktop/{wl_shell, xwayland}: Fix changing between toplevel states

2016-08-16 Thread Emmanuel Gil Peyrot
On Tue, Aug 16, 2016 at 11:42:47AM +0200, Quentin Glidic wrote: > From: Quentin Glidic <sardemff7+...@sardemff7.net> Tested-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> > > Signed-off-by: Quentin Glidic <sardemff7+...@sardemff7.net> > --- >

Re: [PATCH weston] clients: Add a weston-autorotater client and rotater protocol

2016-08-08 Thread Emmanuel Gil Peyrot
On Mon, May 23, 2016 at 12:00:13PM +0300, Pekka Paalanen wrote: > On Sat, 21 May 2016 03:43:04 +0100 > Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> wrote: > > > This client uses libiio to retrieve accelerometer values from the iio > > subsystem on Linux (a

[PATCH weston v2] clients: Add a weston-autorotator client and rotator protocol

2016-08-08 Thread Emmanuel Gil Peyrot
. - Make the server-side a module instead of a simple function that has to be called by every shell. - Remove the mostly-useless smoothing of the captured input. - Make the protocol take an accelerometer name, to let the rotator match its name with the outputs using it. Signed-off-by: Emmanuel Gil

Re: [PATCH] gl-renderer: Add support for DRM_FORMAT_YUV444 buffers

2016-07-25 Thread Emmanuel Gil Peyrot
program did you test it with? Have you tested it with weston-simple-dmabuf-v4l alongside the vivid kernel module in 4:4:4 mode? Anyway, the code is Reviewed-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> > > ___ > wayland

Re: [PATCH weston] Remove a wrong closing “extern "C"” in shared/xalloc.c

2016-07-13 Thread Emmanuel Gil Peyrot
tect - Intel Open Source Technology Center > > ___ > wayland-devel mailing list > wayland-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/wayland-devel -- Emmanuel Gil Peyrot ___ wayland-dev

[PATCH weston] Remove a wrong closing “extern "C"” in shared/xalloc.c

2016-07-11 Thread Emmanuel Gil Peyrot
Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- shared/xalloc.c | 5 - 1 file changed, 5 deletions(-) diff --git a/shared/xalloc.c b/shared/xalloc.c index 4bf8a3e..9bf5245 100644 --- a/shared/xalloc.c +++ b/shared/xalloc.c @@ -47,8 +47,3 @@ fail_on_null(void *p,

[PATCH weston] clients: Add a weston-autorotater client and rotater protocol

2016-05-20 Thread Emmanuel Gil Peyrot
to make it work with any other iio device. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- Makefile.am | 24 +++ clients/autorotater.c | 472 configure.ac| 15 ++ desktop-shell/s

Re: [PATCH weston] zunitc: use platform-independent macros for integer formatting

2016-05-18 Thread Emmanuel Gil Peyrot
On Wed, May 18, 2016 at 05:18:18PM +0100, Emmanuel Gil Peyrot wrote: > From: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> > > Fixes warnings and potential issues on 32-bit platforms, tested only on > ARM but I’d expect the same issue on i686. > > Signed-off-by: Emm

[PATCH weston] zunitc: use platform-independent macros for integer formatting

2016-05-18 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Fixes warnings and potential issues on 32-bit platforms, tested only on ARM but I’d expect the same issue on i686. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- This patch should be fine to land during t

[PATCH weston] desktop-shell: Don’t reconfigure an already fullscreen surface

2016-05-09 Thread Emmanuel Gil Peyrot
with set_fullscreen requests after the user has put them in the background with a mod+tab. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- desktop-shell/shell.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 1c39a12..7d5bca9

Re: Dual Monitor mirror/twinview

2016-05-02 Thread Emmanuel Gil Peyrot
aster. > > Thank you so much, > Flo -- Emmanuel Gil Peyrot ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel

[PATCH weston 6/8] compositor-drm: Make some functions take a weston_output directly

2016-05-02 Thread Emmanuel Gil Peyrot
Makes it clearer that they don’t use any field specific to drm_output, and reduce the amount of churn from the following commits. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- src/compositor-drm.c | 48 1 file chang

[PATCH weston 2/8] compositor-drm: Write a name in the mode generated from a modeline

2016-05-02 Thread Emmanuel Gil Peyrot
The current behaviour leaves the name empty, making it somewhat harder to determine the characteristics of this mode from a debugger. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- src/compositor-drm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/comp

[PATCH weston 7/8] compositor-drm: Implement clone mode, refactor output into logical ones

2016-05-02 Thread Emmanuel Gil Peyrot
and the per-weston_output drm_logical_output, with the latter containing one or more of the former in a wl_list. I tested it on both i915 and etnaviv platforms, with various external monitors and configurations, as well as hotplugging. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.

[PATCH weston 0/8] Implement clone mode for the DRM renderer

2016-05-02 Thread Emmanuel Gil Peyrot
the physical DRM connector from the logical weston_output, as a wl_list. Emmanuel Gil Peyrot (8): compositor-drm: Remove unused output reference in drm_fb compositor-drm: Write a name in the mode generated from a modeline compositor-drm: Don’t try to set the cursor anymore once we know it’s

[PATCH weston 1/8] compositor-drm: Remove unused output reference in drm_fb

2016-05-02 Thread Emmanuel Gil Peyrot
Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- src/compositor-drm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index a47b453..7c5e1af 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -137,10

[PATCH weston 5/8] compositor-drm: Take a reference to the drm_output's base where it makes sense

2016-05-02 Thread Emmanuel Gil Peyrot
This makes the code more uniform with the functions taking a weston_output* as argument, and reduces the churn of the following commits. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- src/compositor-drm.c | 130 ++-

[PATCH weston 8/8] compositor-drm: Make output detection order irrelevant

2016-05-02 Thread Emmanuel Gil Peyrot
When using the clone mode, the order of detection of outputs shouldn’t matter for them to be included in a virtual_output or not, this fixes this issue from the previous patch. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> --- src/compositor-drm.

[PATCH weston] configure: Add an option to disable tests.

2016-03-24 Thread Emmanuel Gil Peyrot
This makes LTO builds compile, and also reduces the build time. --- Makefile.am | 2 ++ configure.ac | 8 2 files changed, 10 insertions(+) diff --git a/Makefile.am b/Makefile.am index d1644ac..08a18eb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1073,6 +1073,7 @@

Re: [PATCH weston v2 2/2] configure: Make jpeglib an optional dependency.

2016-02-24 Thread Emmanuel Gil Peyrot
On Wed, Feb 17, 2016 at 11:04:16AM -0800, Bryce Harrington wrote: > On Wed, Feb 17, 2016 at 12:28:48PM +0100, Emmanuel Gil Peyrot wrote: > > On Tue, Feb 16, 2016 at 10:29:34PM -0800, Bryce Harrington wrote: > > > On Tue, Feb 16, 2016 at 01:57:52AM +0000, Emmanue

Re: [PATCH weston v2 2/2] configure: Make jpeglib an optional dependency.

2016-02-17 Thread Emmanuel Gil Peyrot
On Tue, Feb 16, 2016 at 10:29:34PM -0800, Bryce Harrington wrote: > On Tue, Feb 16, 2016 at 01:57:52AM +0000, Emmanuel Gil Peyrot wrote: > > It doesn’t make sense to fail the entire build when jpeglib isn’t > > present, so this commit makes it optional just like libwebp in the &

[PATCH weston v2 2/2] configure: Make jpeglib an optional dependency.

2016-02-15 Thread Emmanuel Gil Peyrot
It doesn’t make sense to fail the entire build when jpeglib isn’t present, so this commit makes it optional just like libwebp in the previous one, disabled with --without-jpeg and forced with --with-jpeg. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- Changes since v1: -

[PATCH weston v2 1/2] configure: Make WebP support togglable, and improve its error message.

2016-02-15 Thread Emmanuel Gil Peyrot
if it isn’t found, the default being to use it if it is present. Additionally, we now tell the user when WebP support has been disabled and they try to load a WebP file. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- configure.ac | 12 ++-- shared/image-loader.

[PATCH weston] configure: Make libjpeg an optional dependency

2016-02-05 Thread Emmanuel Gil Peyrot
everywhere else. Signed-off-by: Emmanuel Gil Peyrot <linkma...@linkmauve.fr> --- configure.ac | 8 shared/image-loader.c | 23 --- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/configure.ac b/configure.ac index bff6380..c42e32b

Re: [PATCH] clients: fix build on Linux

2016-01-14 Thread Emmanuel Gil Peyrot
trange it doesn’t exist on your system. Linux also defines it in sys/ioctl.h, do you think we should be using this one instead of the portable header? Cheers, -- Emmanuel Gil Peyrot Collabora Ltd. ___ wayland-devel mailing list wayland

[PATCH weston v3 3/5] clients: rename simple-dmabuf into simple-dmabuf-intel

2016-01-11 Thread Emmanuel Gil Peyrot
This client was using an Intel-specific way to allocate a dmabuf, so it makes sense to have that in its name. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paala...@collabora.co.uk> Reviewed-by: Daniel Stone <dani...@collabor

[PATCH weston v3 4/5] clients: Fix a few issues in simple-dmabuf-intel

2016-01-11 Thread Emmanuel Gil Peyrot
nested roundtrips also prevent the potentially dangerous side-effect of calling callbacks for later events while previous events were still being processed. An extraneous surface damage was also removed. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Reviewed-by:

[PATCH weston v3 5/5] clients: add simple-v4l-dmabuf client

2016-01-11 Thread Emmanuel Gil Peyrot
the v4l2 settings, use `v4l2-ctl -c` if you want to change those. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Acked-by: Derek Foreman <der...@osg.samsung.com> Maniphest Tasks: T90 Differential Revision: https://phabricator.freedesktop.org/D339 --- Just rebased ag

[PATCH weston v3 2/5] gl-renderer: Add support for a few YUV dmabuf formats

2016-01-11 Thread Emmanuel Gil Peyrot
Namely the single-planar YUYV, the two-planar NV12, and the three-planar YUV420, using the shaders already present in Weston. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Reviewed-by: Derek Foreman <der...@osg.samsung.com> Maniphest Tasks: T13 Differential Rev

[PATCH weston v3 1/5] gl-renderer: introduce a new struct dmabuf_image

2016-01-11 Thread Emmanuel Gil Peyrot
This struct serves as renderer data for linux-dmabuf buffers, and can contain multiple struct egl_image, simplifying this latter in the common non-dmabuf case. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paala...@collabora.co.uk&

Re: [PATCH] test: add make check

2015-12-21 Thread Emmanuel Gil Peyrot
and the script will exit on any command not returning 0. > + > +wayland-scanner client-header $1 /dev/null && > +wayland-scanner server-header $1 /dev/null && > +wayland-scanner code $1 /dev/null > -- > 2.6.4 With that done, Reviewed-by: Emmanuel Gil Peyrot &

[PATCH weston v2 5/5] clients: add simple-v4l-dmabuf client

2015-12-10 Thread Emmanuel Gil Peyrot
the v4l2 settings, use `v4l2-ctl -c` if you want to change those. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Acked-by: Derek Foreman <der...@osg.samsung.com> Maniphest Tasks: T90 Differential Revision: https://phabricator.freedesktop.org/D339 ---

[PATCH weston v2 4/5] clients: Fix a few issues in simple-dmabuf-intel

2015-12-10 Thread Emmanuel Gil Peyrot
nested roundtrips also prevent the potentially dangerous side-effect of calling callbacks for later events while previous events were still being processed. An extraneous surface damage was also removed. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Reviewed-by:

[PATCH weston v2 2/5] gl-renderer: Add support for a few YUV dmabuf formats

2015-12-10 Thread Emmanuel Gil Peyrot
Namely the single-planar YUYV, the two-planar NV12, and the three-planar YUV420, using the shaders already present in Weston. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Reviewed-by: Derek Foreman <der...@osg.samsung.com> Maniphest Tasks: T13 Differential Rev

[PATCH weston v2 3/5] clients: rename simple-dmabuf into simple-dmabuf-intel

2015-12-10 Thread Emmanuel Gil Peyrot
This client was using an Intel-specific way to allocate a dmabuf, so it makes sense to have that in its name. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paala...@collabora.co.uk> Reviewed-by: Daniel Stone <dani...@collabor

[PATCH weston v2 1/5] gl-renderer: introduce a new struct dmabuf_image

2015-12-10 Thread Emmanuel Gil Peyrot
This struct serves as renderer data for linux-dmabuf buffers, and can contain multiple struct egl_image, simplifying this latter in the common non-dmabuf case. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paala...@collabora.co.uk&

[PATCH 2/6] gl-renderer: introduce a new struct dmabuf_image

2015-11-24 Thread Emmanuel Gil Peyrot
This struct serves as renderer data for linux-dmabuf buffers, and can contain multiple struct egl_image, simplifying this latter in the common non-dmabuf case. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paala...@collabora.co.uk&

[PATCH 1/6] linux-dmabuf: Move the attributes part of linux_dmabuf_buffer into its own struct

2015-11-24 Thread Emmanuel Gil Peyrot
This allows renderers to use that struct to create their own dmabufs, in case they can’t import the one provided by the client directly but know how to convert it into a format they can render. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Reviewed-by: Pekka Pa

[PATCH 3/6] gl-renderer: Add support for a few YUV dmabuf formats

2015-11-24 Thread Emmanuel Gil Peyrot
Namely the single-planar YUYV, the two-planar NV12, and the three-planar YUV420, using the shaders already present in Weston. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Maniphest Tasks: T13 Differential Revision: https://phabricator.freedesktop.org/D334 ---

[PATCH 5/6] clients: Fix a few issues in simple-dmabuf-intel

2015-11-24 Thread Emmanuel Gil Peyrot
nested roundtrips also prevent the potentially dangerous side-effect of calling callbacks for later events while previous events were still being processed. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paala...@collabora.co.uk&

[PATCH 4/6] clients: rename simple-dmabuf into simple-dmabuf-intel

2015-11-24 Thread Emmanuel Gil Peyrot
This client was using an Intel-specific way to allocate a dmabuf, so it makes sense to have that in its name. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paala...@collabora.co.uk> Reviewed-by: Daniel Stone <dani..

[PATCH 0/6] Add YUV formats support to dmabuf, and a v4l2 client

2015-11-24 Thread Emmanuel Gil Peyrot
during the development of simple-dmabuf-v4l. Emmanuel Gil Peyrot (6): linux-dmabuf: Move the attributes part of linux_dmabuf_buffer into its own struct gl-renderer: introduce a new struct dmabuf_image gl-renderer: Add support for a few YUV dmabuf formats clients: rename simple-dmabuf

[PATCH 6/6] clients: add simple-v4l-dmabuf client

2015-11-24 Thread Emmanuel Gil Peyrot
the v4l2 settings, use `v4l2-ctl -c` if you want to change those. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.pey...@collabora.com> Maniphest Tasks: T90 Differential Revision: https://phabricator.freedesktop.org/D339 --- .gitignore | 1 + Makefile.am | 15 + c

[PATCH] compositor-wayland: Expose zlinux_dmabuf

2015-09-25 Thread Emmanuel Gil Peyrot
This mirrors what 5ffb440c3fe19669de73e51b90ea337fa2d5ae78 did for compositor-x11, and allows testing without having to restart the compositor-drm everytime. --- src/compositor-wayland.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c

[PATCH] Partially revert xwayland: Always free reply from xcb_get_property_reply()

2015-07-15 Thread Emmanuel Gil Peyrot
This reverts commit d3553c721c0fed07f85b70fea418ca65ed974fbb. weston_wm_write_property() takes the ownership of the reply it gets as a parameter, and will eventually free it later in writable_callback. This change introduced a double-free when Xwayland programs triggered a copy to the clipboard,

  1   2   >