Re: [PATCH 1/2 v2] version: Fix WESTON_VERSION_AT_LEAST macro

2014-01-24 Thread Bill Spitzak
If a feature remains in N minor versions the programmer would have to put in N compatable-with macros to enable it. They would also have to update the code every time a new minor version comes out (or just predict a number of minor versions into the future and put in a bunch of calls to this).

RE: [PATCH 1/2 v2] version: Fix WESTON_VERSION_AT_LEAST macro

2014-01-24 Thread Eoff, Ullysses A
Furthermore, say I'm using Weston 1.3.91... a usage of WESTON_VERSION_COMPATIBLE_WITH(1,3,0) would return True (1), which is wrong since the API/ABI actually changed somewhere between 1.3.90 and 1.3.91. Granted, most API/ABI consumers won't be using x.y.9z development version series. But, as it'

RE: [PATCH 1/2 v2] version: Fix WESTON_VERSION_AT_LEAST macro

2014-01-24 Thread Eoff, Ullysses A
Even with just a rename, if the API/ABI doesn't change from 1.4.x to 1.5.x the macro wouldn't work if you used WESTON_VERSION_COMPATIBLE_WITH(1,4,0) when version == 1.5.0 as it's written now. That is, with a rename, the logic indicates that "No major or minor release is compatible with another maj

Re: [PATCH 1/2 v2] version: Fix WESTON_VERSION_AT_LEAST macro

2014-01-24 Thread Daniel Stone
Hi, The macro should really be called WESTON_VERSION_COMPATIBLE_WITH() - it's done that way specifically to allow breaking API/ABI at least every minor release. Cheers, Daniel On 24 January 2014 19:11, U. Artie Eoff wrote: > From: "U. Artie Eoff" > > Fixes: https://bugs.freedesktop.org/show_bug

[PATCH 2/2 v2] tests: add version sanity tests

2014-01-24 Thread U. Artie Eoff
From: "U. Artie Eoff" Test the WESTON_VERSION_AT_LEAST macro with at least 27 permutations of major.minor.micro. That is, all permutations where major, minor, and micro are less-than, more-than, or equal to the current version parts. Signed-off-by: U. Artie Eoff --- tests/Makefile.am| 8

[PATCH 1/2 v2] version: Fix WESTON_VERSION_AT_LEAST macro

2014-01-24 Thread U. Artie Eoff
From: "U. Artie Eoff" Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=74023 Signed-off-by: U. Artie Eoff --- src/version.h.in | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/version.h.in b/src/version.h.in index 79dba45..e72fea8 100644 --- a/src/version.h.i

RE: [PATCH 1/2] version: Fix WESTON_VERSION_AT_LEAST macro

2014-01-24 Thread Eoff, Ullysses A
Oh FRACK! I reversed the logic! Ignore this patch series. v2 coming > -Original Message- > From: Eoff, Ullysses A > Sent: Friday, January 24, 2014 10:26 AM > To: wayland-devel@lists.freedesktop.org > Cc: Eoff, Ullysses A > Subject: [PATCH 1/2] version: Fix WESTON_VERSION_AT_LEAST macro

Re: What use do swap interval > 1 and OML_sync_control divisor and remainder have?

2014-01-24 Thread Jason Ekstrand
I'll just chip in one quick thought. On Jan 24, 2014 6:32 AM, "Pekka Paalanen" wrote: > > Hi, > > I am investigating what kind of Wayland protocol extensions would be > needed to support proper presentation timing. Looking at existing > works, I am wondering about two things whether they have any

[PATCH 2/2] tests: add version sanity tests

2014-01-24 Thread U. Artie Eoff
From: "U. Artie Eoff" Test the WESTON_VERSION_AT_LEAST macro with at least 27 permutations of major.minor.micro. That is, all permutations where major, minor, and micro are less-than, more-than, or equal to the current version parts. Signed-off-by: U. Artie Eoff --- tests/Makefile.am| 8

[PATCH 1/2] version: Fix WESTON_VERSION_AT_LEAST macro

2014-01-24 Thread U. Artie Eoff
From: "U. Artie Eoff" Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=74023 Signed-off-by: U. Artie Eoff --- src/version.h.in | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/version.h.in b/src/version.h.in index 79dba45..b543963 100644 --- a/src/version.h.i

[PATCH mesa] wayland: Fix the logic in disabling the prime capability

2014-01-24 Thread Neil Roberts
It looks like this bit of code is trying to disable the prime capability if the driver doesn't support createImageFromFds. However the logic looks a bit broken and what it would actually do is disable all other capabilities apart from prime. This patch fixes it to actually disable prime. --- src/e

What use do swap interval > 1 and OML_sync_control divisor and remainder have?

2014-01-24 Thread Pekka Paalanen
Hi, I am investigating what kind of Wayland protocol extensions would be needed to support proper presentation timing. Looking at existing works, I am wondering about two things whether they have any real use. Where is swap interval (e.g. eglSwapInterval) greater than one useful? Intervals 0 and

Wayland and Weston 1.4 is out

2014-01-24 Thread Kristian Høgsberg
Hi, We have a 1.4.0 release. Tagged in git and tarballs available from http://wayland.freedesktop.org/releases.html as usual: 49b0b6d5e2366a7bad5158b29998213e5ca7f254 weston-1.4.0.tar.xz 181131253747500c4759a117ee312262fbb6ed19 weston 1.4.0 tag bc91befb8386ec5c1ff4f24ad8464c24a7496ae2

Re: swc: A small compositor framework

2014-01-24 Thread Marc Chalain
Hello Michael, I'm interesting by your library. I began a wayland compositor for very light devices with little processor like ARM9 and without GPU. I will read your code with interest and look if I can use your library. If I can help you, I will contact to you in few weeks. Regards, Marc. 2014/