Re: [PATCH v2] configure.ac: use AC_HEADER_MAJOR to detect major()/minor()

2017-12-12 Thread Pekka Paalanen
On Tue, 12 Dec 2017 15:41:52 + Emil Velikov wrote: > On 12 December 2017 at 08:28, Pekka Paalanen wrote: > > On Mon, 11 Dec 2017 16:16:47 +0200 > > Pekka Paalanen wrote: > > > >> On Wed, 31 May 2017 22:17:50 +0100 > >> Sergei Trofimovich wrote: > >> > >> > This change slightly updates

[PATCH] Allow to specify wayland-protocols datadir

2017-12-12 Thread Marius Vlad
This is particularly useful when cross-compiling and we need to specify a custom datadir path for wayland-protocols. Cross-compilation toolchain is usually immutable, and in this way we can modify wayland-protocols independently from what the toolchain provides. Signed-off-by: Marius Vlad --- co

Re: [PATCH v2 libinput] FreeBSD portability fixes

2017-12-12 Thread Peter Hutterer
On Tue, Dec 12, 2017 at 03:55:10PM +, Emil Velikov wrote: > On 11 December 2017 at 04:21, Peter Hutterer wrote: > > >> - ptrace(PTRACE_CONT, NULL, NULL); > >> + ptrace(PTRACE_CONT, ppid, NULL, 0); > > > > > split this one out please, I'd rather not hav

Re: [PATCH wayland v2 1/8] wayland-egl: import libwayland-egl.so frontend library from Mesa

2017-12-12 Thread Miguel Angel Vico
Hi, On Tue, 12 Dec 2017 20:58:30 +0100 Arnaud Vrac wrote: > Hi Emil, > > On Tue, Oct 10, 2017 at 3:43 PM, Emil Velikov > wrote: > > From: Emil Velikov > > > > Currently the client-facing libwayland-egl API is defined by a header > > file shipped by Wayland, but the implementation is left to

Re: [PATCH wayland v2 0/8] Import wayland-egl frontend library

2017-12-12 Thread Arnaud Vrac
Hi Emil, On Tue, Oct 10, 2017 at 3:43 PM, Emil Velikov wrote: > Hi all, > > Here is a retake of the RFC as originally seen here [1]. > > In summary - we want the user facing library to live in Wayland with > vendors providing a backend/plugin. Otherwise we'll get file conflicts > as library can

Re: [PATCH wayland v2 1/8] wayland-egl: import libwayland-egl.so frontend library from Mesa

2017-12-12 Thread Arnaud Vrac
Hi Emil, On Tue, Oct 10, 2017 at 3:43 PM, Emil Velikov wrote: > From: Emil Velikov > > Currently the client-facing libwayland-egl API is defined by a header > file shipped by Wayland, but the implementation is left to each vendor. > > This can cause collisions when multiple implementations are i

Re: Providing shared buffer for applications within Smack environment

2017-12-12 Thread José Bollo
On Tue, 12 Dec 2017 18:29:30 +0100 Rafał Krypa wrote: > Hi, Hi, > On 2017-12-12 17:46, José Bollo wrote: > > On Tue, 12 Dec 2017 13:28:58 +0200 > > Pekka Paalanen wrote: > > > >> On Tue, 12 Dec 2017 12:08:43 +0100 > >> José Bollo wrote: > >> > >>> On Tue, 12 Dec 2017 12:44:46 +0200 > >>>

Re: Providing shared buffer for applications within Smack environment

2017-12-12 Thread José Bollo
On Tue, 12 Dec 2017 13:28:58 +0200 Pekka Paalanen wrote: > On Tue, 12 Dec 2017 12:08:43 +0100 > José Bollo wrote: > > > On Tue, 12 Dec 2017 12:44:46 +0200 > > Pekka Paalanen wrote: > > > > > On Tue, 12 Dec 2017 11:00:23 +0100 > > > José Bollo wrote: > > > > > > > Hi all, > > > > > >

Re: Providing shared buffer for applications within Smack environment

2017-12-12 Thread José Bollo
On Tue, 12 Dec 2017 11:44:48 + "Ucan, Emre (ADITG/ESB)" wrote: > Hi, > > Protocol is here since Dec 16, 2015: > https://github.com/GENIVI/wayland-ivi-extension/blob/master/protocol/ivi-share.xml > > It is basically used to share application buffers with HMI/Window > manager, so that applica

Re: [PATCH wayland v2 0/8] Import wayland-egl frontend library

2017-12-12 Thread Emil Velikov
Hi Daniel, On 13 November 2017 at 14:06, Daniel Stone wrote: > Hi Emil, > > On 8 November 2017 at 14:06, Emil Velikov wrote: >> On 10 October 2017 at 14:43, Emil Velikov wrote: >>> In summary - we want the user facing library to live in Wayland with >>> vendors providing a backend/plugin. Othe

Re: [PATCH v2 libinput] FreeBSD portability fixes

2017-12-12 Thread Emil Velikov
On 11 December 2017 at 04:21, Peter Hutterer wrote: >> - ptrace(PTRACE_CONT, NULL, NULL); >> + ptrace(PTRACE_CONT, ppid, NULL, 0); > > split this one out please, I'd rather not have it hidden in a bsd-suppport > patch, thanks. > Was going to ask - the PTRA

Re: [PATCH v2] configure.ac: use AC_HEADER_MAJOR to detect major()/minor()

2017-12-12 Thread Emil Velikov
On 12 December 2017 at 08:28, Pekka Paalanen wrote: > On Mon, 11 Dec 2017 16:16:47 +0200 > Pekka Paalanen wrote: > >> On Wed, 31 May 2017 22:17:50 +0100 >> Sergei Trofimovich wrote: >> >> > This change slightly updates c4d7f66c12853b9575366dd9f4a7960ec5694934 >> > which added inclusion. >> > >>

Re: [PATCH v2 weston 1/3] gl-renderer: save OpenGL version in renderer context

2017-12-12 Thread Emil Velikov
Hi Arnaud, On 11 December 2017 at 12:18, Arnaud Vrac wrote: > This will allow to make some assumptions in further patches when GLES3 > is available. > There's a couple of nitpicks below, but regardless if you opt for them or not the series is: Reviewed-by: Emil Velikov > Signed-off-by: Arnaud

Re: [PATCH weston 2/8] shared: Add helpers to convert between protocol data and timespec

2017-12-12 Thread Pekka Paalanen
On Tue, 12 Dec 2017 16:29:49 +0200 Alexandros Frantzis wrote: > On Tue, Dec 12, 2017 at 03:09:56PM +0200, Pekka Paalanen wrote: > > On Tue, 12 Dec 2017 14:43:11 +0200 > > Alexandros Frantzis wrote: > > > > > On Tue, Dec 12, 2017 at 12:09:59PM +0200, Pekka Paalanen wrote: > > > > On Mon, 4

Re: [PATCH weston 2/8] shared: Add helpers to convert between protocol data and timespec

2017-12-12 Thread Alexandros Frantzis
On Tue, Dec 12, 2017 at 03:09:56PM +0200, Pekka Paalanen wrote: > On Tue, 12 Dec 2017 14:43:11 +0200 > Alexandros Frantzis wrote: > > > On Tue, Dec 12, 2017 at 12:09:59PM +0200, Pekka Paalanen wrote: > > > On Mon, 4 Dec 2017 15:34:02 +0200 > > > Alexandros Frantzis wrote: > > > > > > > Add h

Re: [PATCH weston 8/8] tests: Add test for touch event timestamps

2017-12-12 Thread Pekka Paalanen
On Mon, 4 Dec 2017 15:34:08 +0200 Alexandros Frantzis wrote: > Add test to verify that the server correctly sets the timestamps of > touch events. This requires updating the weston-test protocol with a new > request for touch events. > > Signed-off-by: Alexandros Frantzis > --- > Makefile.am

Re: [PATCH weston 7/8] tests: Add test for keyboard key event timestamps

2017-12-12 Thread Pekka Paalanen
On Mon, 4 Dec 2017 15:34:07 +0200 Alexandros Frantzis wrote: > Add test to verify that the server correctly sets the timestamps of > keyboard key events. This requires updating the weston-test protocol to > support passing key event timestamps. > > Signed-off-by: Alexandros Frantzis > --- > p

Re: [PATCH weston 6/8] tests: Add test for pointer axis events

2017-12-12 Thread Pekka Paalanen
On Mon, 4 Dec 2017 15:34:06 +0200 Alexandros Frantzis wrote: > Add test to verify the server correctly emits pointer axis events. This > requires updating the weston-test protocol with a new request for > pointer axis events. > > Signed-off-by: Alexandros Frantzis > --- > protocol/weston-tes

Re: [PATCH weston 5/8] tests: Add checks for pointer motion and button event timestamps

2017-12-12 Thread Alexandros Frantzis
On Tue, Dec 12, 2017 at 02:13:26PM +0200, Pekka Paalanen wrote: > On Mon, 4 Dec 2017 15:34:05 +0200 > Alexandros Frantzis wrote: > > > Enhance the existing pointer motion and button event tests to > > additionally verify the event timestamps. This requires updating the > > weston-test protocol t

Re: [PATCH weston 2/8] shared: Add helpers to convert between protocol data and timespec

2017-12-12 Thread Pekka Paalanen
On Tue, 12 Dec 2017 14:43:11 +0200 Alexandros Frantzis wrote: > On Tue, Dec 12, 2017 at 12:09:59PM +0200, Pekka Paalanen wrote: > > On Mon, 4 Dec 2017 15:34:02 +0200 > > Alexandros Frantzis wrote: > > > > > Add helpers to safely convert between struct timespec values and > > > tv_sec_hi, tv_

Re: [PATCH weston 1/8] shared: Add timespec_normalize helper

2017-12-12 Thread Alexandros Frantzis
On Tue, Dec 12, 2017 at 12:55:27PM +0200, Pekka Paalanen wrote: > On Tue, 12 Dec 2017 12:36:39 +0200 > Alexandros Frantzis wrote: > > > On Tue, Dec 12, 2017 at 11:50:49AM +0200, Pekka Paalanen wrote: > > > On Mon, 4 Dec 2017 15:34:01 +0200 > > > Alexandros Frantzis wrote: > > > > > > > Add a

Re: [PATCH weston 2/8] shared: Add helpers to convert between protocol data and timespec

2017-12-12 Thread Alexandros Frantzis
On Tue, Dec 12, 2017 at 12:09:59PM +0200, Pekka Paalanen wrote: > On Mon, 4 Dec 2017 15:34:02 +0200 > Alexandros Frantzis wrote: > > > Add helpers to safely convert between struct timespec values and > > tv_sec_hi, tv_sec_lo, tv_nsec triplets used for sending high-resolution > > timestamp data o

Re: [PATCH weston 5/8] tests: Add checks for pointer motion and button event timestamps

2017-12-12 Thread Pekka Paalanen
On Mon, 4 Dec 2017 15:34:05 +0200 Alexandros Frantzis wrote: > Enhance the existing pointer motion and button event tests to > additionally verify the event timestamps. This requires updating the > weston-test protocol to support passing motion and button event > timestamps. > > Signed-off-by:

Re: [PATCH weston 4/8] tests: Use separate test cases for pointer motion and button tests

2017-12-12 Thread Pekka Paalanen
On Mon, 4 Dec 2017 15:34:04 +0200 Alexandros Frantzis wrote: > Split pointer motion and pointer button tests so that each test case is > more focused and self-contained. > > Signed-off-by: Alexandros Frantzis > --- > tests/pointer-test.c | 36 +--- > 1 file cha

RE: Providing shared buffer for applications within Smack environment

2017-12-12 Thread Ucan, Emre (ADITG/ESB)
Hi, Protocol is here since Dec 16, 2015: https://github.com/GENIVI/wayland-ivi-extension/blob/master/protocol/ivi-share.xml It is basically used to share application buffers with HMI/Window manager, so that application content can be used for HMI animations. It should not be used in new project

Re: Providing shared buffer for applications within Smack environment

2017-12-12 Thread Pekka Paalanen
On Tue, 12 Dec 2017 12:08:43 +0100 José Bollo wrote: > On Tue, 12 Dec 2017 12:44:46 +0200 > Pekka Paalanen wrote: > > > On Tue, 12 Dec 2017 11:00:23 +0100 > > José Bollo wrote: > > > > > Hi all, > > > > > > While working for AGL [1], I want to allow applications to receive > > > the buffer

Re: Providing shared buffer for applications within Smack environment

2017-12-12 Thread Daniel Stone
Hi Jose, On 12 December 2017 at 11:12, José Bollo wrote: > On Tue, 12 Dec 2017 11:00:08 + > Daniel Stone wrote: >> I assume this is related to the never-upstreamed ivi_share protocol >> extension. > > Yes the probability is near 100% > > So it could be a design feature issue. > > I'm not ver

Re: Providing shared buffer for applications within Smack environment

2017-12-12 Thread José Bollo
On Tue, 12 Dec 2017 11:00:08 + Daniel Stone wrote: > Hi Pekka, > > On 12 December 2017 at 10:44, Pekka Paalanen > wrote: > > On Tue, 12 Dec 2017 11:00:23 +0100 > > José Bollo wrote: > >> While working for AGL [1], I want to allow applications to receive > >> the buffers allocated by WEST

Re: Providing shared buffer for applications within Smack environment

2017-12-12 Thread José Bollo
On Tue, 12 Dec 2017 12:44:46 +0200 Pekka Paalanen wrote: > On Tue, 12 Dec 2017 11:00:23 +0100 > José Bollo wrote: > > > Hi all, > > > > While working for AGL [1], I want to allow applications to receive > > the buffers allocated by WESTON. The use of the surfaces/buffers > > allocated by Westo

Re: Providing shared buffer for applications within Smack environment

2017-12-12 Thread Daniel Stone
Hi Pekka, On 12 December 2017 at 10:44, Pekka Paalanen wrote: > On Tue, 12 Dec 2017 11:00:23 +0100 > José Bollo wrote: >> While working for AGL [1], I want to allow applications to receive the >> buffers allocated by WESTON. The use of the surfaces/buffers >> allocated by Weston is difficult whe

Re: [PATCH weston 1/8] shared: Add timespec_normalize helper

2017-12-12 Thread Pekka Paalanen
On Tue, 12 Dec 2017 12:36:39 +0200 Alexandros Frantzis wrote: > On Tue, Dec 12, 2017 at 11:50:49AM +0200, Pekka Paalanen wrote: > > On Mon, 4 Dec 2017 15:34:01 +0200 > > Alexandros Frantzis wrote: > > > > > Add a helper function to normalize struct timespec values so that the > > > nanosecon

Re: Providing shared buffer for applications within Smack environment

2017-12-12 Thread Pekka Paalanen
On Tue, 12 Dec 2017 11:00:23 +0100 José Bollo wrote: > Hi all, > > While working for AGL [1], I want to allow applications to receive the > buffers allocated by WESTON. The use of the surfaces/buffers > allocated by Weston is difficult when Smack is activated. Hi, why do you need to make Westo

Re: [PATCH weston 1/8] shared: Add timespec_normalize helper

2017-12-12 Thread Alexandros Frantzis
On Tue, Dec 12, 2017 at 11:50:49AM +0200, Pekka Paalanen wrote: > On Mon, 4 Dec 2017 15:34:01 +0200 > Alexandros Frantzis wrote: > > > Add a helper function to normalize struct timespec values so that the > > nanoseconds part is less than 1 second and has the same sign as the > > seconds part (i

Re: [PATCH weston 3/8] tests: Move wl_pointer tests to their own file

2017-12-12 Thread Pekka Paalanen
On Mon, 4 Dec 2017 15:34:03 +0200 Alexandros Frantzis wrote: > Move wl_pointer tests from event-test.c to their own pointer-test.c > file. This move makes the test organization clearer and more consistent, > and will make addition of further pointer tests easier. > > Signed-off-by: Alexandros F

Re: [PATCH weston 2/8] shared: Add helpers to convert between protocol data and timespec

2017-12-12 Thread Pekka Paalanen
On Mon, 4 Dec 2017 15:34:02 +0200 Alexandros Frantzis wrote: > Add helpers to safely convert between struct timespec values and > tv_sec_hi, tv_sec_lo, tv_nsec triplets used for sending high-resolution > timestamp data over the wayland protocol. Replace existing conversion > code with the helper

Providing shared buffer for applications within Smack environment

2017-12-12 Thread José Bollo
Hi all, While working for AGL [1], I want to allow applications to receive the buffers allocated by WESTON. The use of the surfaces/buffers allocated by Weston is difficult when Smack is activated. When these buffers are created, they are tagged with the smack security label that depends on the s

Re: [PATCH weston 1/8] shared: Add timespec_normalize helper

2017-12-12 Thread Pekka Paalanen
On Mon, 4 Dec 2017 15:34:01 +0200 Alexandros Frantzis wrote: > Add a helper function to normalize struct timespec values so that the > nanoseconds part is less than 1 second and has the same sign as the > seconds part (if the seconds part is not 0). > > Normalization is required to ensure we ca

Re: [PATCH v2] configure.ac: use AC_HEADER_MAJOR to detect major()/minor()

2017-12-12 Thread Pekka Paalanen
On Mon, 11 Dec 2017 16:16:47 +0200 Pekka Paalanen wrote: > On Wed, 31 May 2017 22:17:50 +0100 > Sergei Trofimovich wrote: > > > This change slightly updates c4d7f66c12853b9575366dd9f4a7960ec5694934 > > which added inclusion. > > > > Autoconf has AC_HEADER_MAJOR to find out which header define