Re: [PATCH] Avoid unnecessarily re-allocating texture buffer when the size hasn't changed.

2013-06-05 Thread Ander Conselvan de Oliveira
On 06/04/2013 08:06 AM, Kristian Høgsberg wrote: On Tue, May 28, 2013 at 05:28:49PM -0700, Sinclair Yeh wrote: v3: * Removed unnecessary parentheses * Added check for switching from EGL image to SHM buffer * Moved shader assignment out of IF condition v2: Fixed the wrong comparison v1:

[PATCH] gl-renderer: Always release previous EGL images on attach

2013-06-05 Thread Ander Conselvan de Oliveira
From: Ander Conselvan de Oliveira ander.conselvan.de.olive...@intel.com When attaching a new buffer, the EGL images created for the previous one would be released if this new buffer was an EGL or NULL buffer, but not if is was an SHM buffer. This wouldn't cause the resources to be leaked becaused

Re: [PATCH] Avoid unnecessarily re-allocating texture buffer when the size hasn't changed.

2013-06-05 Thread Ander Conselvan de Oliveira
On 05/29/2013 01:38 AM, Sinclair Yeh wrote: On Sun, 26 May 2013 20:03:40 -0400 Kristian Høgsberg hoegsb...@gmail.com wrote: + /* Only allocate a texture if it doesn't match existing one */ + if (((wl_shm_buffer_get_stride(buffer) / 4) != gs-pitch) || +

Re: [PATCH] gl-renderer: Always release previous EGL images on attach

2013-06-05 Thread John Kåre Alsaker
May I suggest https://github.com/Zoxc/weston/commit/062f5ca5dc5809c027f693f2d642bc24f568e348instead? On Wed, Jun 5, 2013 at 11:21 AM, Ander Conselvan de Oliveira conselv...@gmail.com wrote: From: Ander Conselvan de Oliveira ander.conselvan.de.olive...@intel.com When attaching a new buffer,

[PATCH weston] shared: build fix for config-parser test

2013-06-05 Thread ppaalanen
From: Pekka Paalanen pekka.paala...@collabora.co.uk One more wayland-util.h not found issue, triggered by having libwayland installed to a custom prefix. Signed-off-by: Pekka Paalanen pekka.paala...@collabora.co.uk --- shared/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH wayland] Update tests for wl_map changes and add a map_flags test

2013-06-05 Thread Jason Ekstrand
--- tests/connection-test.c | 4 ++-- tests/map-test.c | 54 ++-- tests/os-wrappers-test.c | 2 +- 3 files changed, 41 insertions(+), 19 deletions(-) diff --git a/tests/connection-test.c b/tests/connection-test.c index 9a07d71..e284ea0

Re: [PATCH 00/15] weston scaling support

2013-06-05 Thread Bill Spitzak
John Kåre Alsaker wrote: You might have me confused for Pekka or Alexander. Our proposals should be identical here. I'm just saying that it will increase the possibly resolution of input events on higher scaling factors, which reduces issues with rounding, but doesn't solve it altogether.

[PATCH wayland 1/2] Change WL_ZOMBIE_OBJECT from 0x2 to an actual pointer

2013-06-05 Thread Jason Ekstrand
In order to use the second-lowest bit of each pointer in wl_map for the WL_MAP_ENTRY_LEGACY flag, every pointer has to be a multiple of 4. This was a good assumption, except with WL_ZOMBIE_OBJECT. This commit creates an actual static variable to which WL_ZOMBIE_OBJECT now points. Since things

[PATCH 2/2] Remove incorrect sanity-check from wl_map_insert_at

2013-06-05 Thread Jason Ekstrand
I got a little over-eager with my sanity checks and didn't realize that the client uses wl_map_insert_at to mark objects as zombies when they come from the server-side. Signed-off-by: Jason Ekstrand ja...@jlekstrand.net --- src/wayland-util.c | 6 -- 1 file changed, 6 deletions(-) diff