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

2012-10-28 Thread Matt Arsenault
Should really use %zu for size_t. %zd is for ssize_t On Oct 25, 2012, at 17:15 , Damien Lespiau wrote: > From: Damien Lespiau > > len i size_t, so is the result of the sizeof operator. > --- > clients/dnd.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/clients/d

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

2012-10-28 Thread Dave Airlie
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. In X I've found we only do that for seat 0, for other seats we just

Updated Wayland Live CD with Wayland 1.0

2012-10-28 Thread nerdopolis
Hi. I have created new ISO files with Wayland 1.0 for testing for the impatient. Currently though, the xwayland server, qtwayland, and libsdl still are not ported over to support Wayland 1.0, so these ISO are not really as usable as the older images from August. Also in order to get software r

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

2012-10-28 Thread Jonas Ådahl
If a frame callback is not destroyed when destroying a surface, its handler function will be invoked if the surface was destoryed after the callback was requested but before it was invoked, causing a write on free:ed memory. This can happen if eglDestroySurface() is called shortly after eglSwapBuf

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

2012-10-28 Thread Sannu K
>> >> 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 fix the problem where weston uses a >> secondary/auxiliary GPU an

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

2012-10-28 Thread Sannu K
On Sun, Oct 28, 2012 at 1:58 AM, David Herrmann wrote: > Hi Sannu > > On Sat, Oct 27, 2012 at 8:38 PM, Sannu K wrote: >> On Sat, Oct 27, 2012 at 6:24 PM, David Herrmann >> wrote: >>> This adds one global helper which returns a string describing the primary >>> PCI GPU. This string can later be u

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

2012-10-28 Thread David Herrmann
Hi Jonas On Sun, Oct 28, 2012 at 12:45 AM, 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-