Re: [PATCH weston 2/2] compositor-drm: prefer primary GPU over other GPUs

2012-10-29 Thread Dave Airlie
> > My comment was rather about the information which GPU can be used > independently by user-space. Anyway, I wasn't aware that the kernel > provides a boot_vga sysfs attribute with the same information. So I > can rewrite this patch to use this attribute instead of using > libpciaccess. Well for

Updated Re: GTK+ master hasn't been updated for xkbcommon-0.2.0

2012-10-29 Thread darxus
On 10/25, dar...@chaosreigns.com wrote: > bluetech opened a bug with an attached patch: > https://bugzilla.gnome.org/show_bug.cgi?id=686904 Committed, GTK+ master now builds with wayland / libxkbcommon git masters. EFL is also up to date. XWayland, Qt, and SDL still haven't been updated since the

[PATCH v4 10/10] Move EGL and GL includes to a gles2-renderer header.

2012-10-29 Thread John Kåre Alsaker
--- src/Makefile.am | 1 + src/compositor-android.c | 2 +- src/compositor-drm.c | 1 + src/compositor-wayland.c | 4 +--- src/compositor-x11.c | 4 +--- src/compositor.h | 29 - src/gl-renderer.h| 48 +++

[PATCH v4 09/10] Move weston_compositor GL and EGL state into gles2-renderer.

2012-10-29 Thread John Kåre Alsaker
--- src/compositor.h | 12 --- src/gles2-renderer.c | 61 ++-- 2 files changed, 35 insertions(+), 38 deletions(-) diff --git a/src/compositor.h b/src/compositor.h index 76f9aa8..1f6a38f 100644 --- a/src/compositor.h +++ b/src/compositor.

[PATCH v4 08/10] Move weston_surface GL and EGL state into gles2-renderer.

2012-10-29 Thread John Kåre Alsaker
--- src/compositor.c | 3 -- src/compositor.h | 6 src/gles2-renderer.c | 87 +--- 3 files changed, 48 insertions(+), 48 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index f017052..42d04e0 100644 --- a/src/compositor.

[PATCH v4 07/10] Moved shader state into gles2-renderer.

2012-10-29 Thread John Kåre Alsaker
--- src/compositor.h | 18 -- src/gles2-renderer.c | 93 +--- 2 files changed, 59 insertions(+), 52 deletions(-) diff --git a/src/compositor.h b/src/compositor.h index f3dc829..d8332fc 100644 --- a/src/compositor.h +++ b/src/compositor.h

[PATCH v4 06/10] gles2-renderer: Renaming some functions.

2012-10-29 Thread John Kåre Alsaker
--- src/gles2-renderer.c | 37 ++--- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/src/gles2-renderer.c b/src/gles2-renderer.c index 0a05899..fc9e06e 100644 --- a/src/gles2-renderer.c +++ b/src/gles2-renderer.c @@ -640,7 +640,7 @@ use_output(struct

[PATCH v4 05/10] compositor: Add a function to set surface color in weston_renderer and move color state to gles2-renderer.

2012-10-29 Thread John Kåre Alsaker
--- src/compositor.c | 11 ++- src/compositor.h | 7 ++- src/gles2-renderer.c | 47 ++- 3 files changed, 58 insertions(+), 7 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 3597cf7..f017052 100644 --- a/src/compo

[PATCH v4 04/10] compositor: Add a renderer function to read out pixels and remove the GL calls from screenshooter.

2012-10-29 Thread John Kåre Alsaker
--- src/compositor.h | 6 - src/gles2-renderer.c | 67 +++- src/screenshooter.c | 27 +++-- 3 files changed, 76 insertions(+), 24 deletions(-) diff --git a/src/compositor.h b/src/compositor.h index 48bbbc6..dfad011 100644 -

[PATCH v4 03/10] Move compositor-wayland border drawing into gles2-renderer.

2012-10-29 Thread John Kåre Alsaker
--- src/compositor-wayland.c | 160 +++ src/compositor.h | 3 + src/gles2-renderer.c | 173 ++- 3 files changed, 183 insertions(+), 153 deletions(-) diff --git a/src/compositor-wayland.c b/src/compos

[PATCH v4 02/10] Move EGLConfig, EGLContext and EGLDisplay fields into gles2-renderer.

2012-10-29 Thread John Kåre Alsaker
--- src/compositor-android.c | 128 ++-- src/compositor-drm.c | 38 ++-- src/compositor-wayland.c | 46 +++ src/compositor-x11.c | 57 ++ src/compositor.h | 9 ++- src/gles2-renderer.c | 148 ++

[PATCH v4 01/10] Move weston_output EGL state into gles2-renderer.

2012-10-29 Thread John Kåre Alsaker
--- src/compositor-android.c | 21 ++--- src/compositor-drm.c | 61 ++ src/compositor-wayland.c | 21 ++--- src/compositor-x11.c | 18 +-- src/compositor.h | 16 -- src/gles2-renderer.c | 77 +++

Re: [PATCH weston v2] compositor-drm: prefer PCI boot_vga GPU over other GPUs

2012-10-29 Thread Kristian Høgsberg
On Mon, Oct 29, 2012 at 07:21:16PM +0100, David Herrmann wrote: > If we can find a boot_vga PCI GPU, we should prefer it over any other GPU > that is connected to the system. The boot_vga flag tells us that this GPU > is the primary system GPU. > > This fixes problems on two-GPU-systems were the w

Re: [PATCH] wayland: Destroy frame callback when destroying surface

2012-10-29 Thread Kristian Høgsberg
On Sun, Oct 28, 2012 at 12:50:12AM +0200, Jonas Ådahl wrote: > If a frame callback is not destroyed when destroying a surface, its > handler function will be invoked if the surface was destroyed after the > callback was requested but before it was invoked, causing a write on > free:ed memory. > >

Re: [PATCH wayland] client: Check that the proxy object exists before invoking closure

2012-10-29 Thread Kristian Høgsberg
On Sun, Oct 28, 2012 at 12:45:40AM +0200, Jonas Ådahl wrote: > Even when a closure got queued in the queue of a proxy, the proxy object > can be destroyed during a closure invoke earlier in the queue. Therefore > check that the proxy object still exists before invoking a closure. > > Signed-off-by

Re: [PATCH] dnd: Use %zd in the format string for size_t types

2012-10-29 Thread Kristian Høgsberg
On Sun, Oct 28, 2012 at 09:45:37PM -0700, Matt Arsenault wrote: > Should really use %zu for size_t. %zd is for ssize_t > On Oct 25, 2012, at 17:15 , Damien Lespiau wrote: Thanks, committed with Matts change on top. Kristian > > From: Damien Lespiau > > > > len i size_t, so is the result of th

[PATCH weston v2] compositor-drm: prefer PCI boot_vga GPU over other GPUs

2012-10-29 Thread David Herrmann
If we can find a boot_vga PCI GPU, we should prefer it over any other GPU that is connected to the system. The boot_vga flag tells us that this GPU is the primary system GPU. This fixes problems on two-GPU-systems were the wrong GPU is used. It also fixes systems were DisplayLink GPUs are availabl

[PATCH weston] Add a headless backend

2012-10-29 Thread Ander Conselvan de Oliveira
Add a headless backend and a noop renderer, mainly for testing purposes. Although no rendering is performed with this backend, this allow some of the code paths inside Weston and shm clients to be tested without any windowing system or any need for drm access. --- configure.ac |6

Re: [PATCH weston 1/2] pci: add PCI helpers to detect primary GPUs

2012-10-29 Thread David Herrmann
Hi Sannu On Sun, Oct 28, 2012 at 10:19 AM, Sannu K wrote: >>> >>> GPU switching under linux has no stable API. The vga_switcheroo module >>> only provides some temporary hacks via debugfs. Therefore, the >>> situations you describe are not what this patch tries to address. It >>> rather tries to

Re: [PATCH weston 2/2] compositor-drm: prefer primary GPU over other GPUs

2012-10-29 Thread David Herrmann
Hi Dave On Sun, Oct 28, 2012 at 7:26 PM, Dave Airlie wrote: > On Sat, Oct 27, 2012 at 10:54 PM, David Herrmann > wrote: >> This rewrites the GPU detection of the DRM backend and uses the new PCI >> helpers to find the primary GPU. If no primary GPU is found, the first GPU >> on the seat is used.