weston: xwayland-test failed without any log.

2014-07-06 Thread Guangyu Zhang
The following is the content of my test-suite.log.

=
   weston 1.5.90: ./test-suite.log
=

# TOTAL: 12
# PASS:  10
# SKIP:  1
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

SKIP: buffer-count
==


FAIL: xwayland-test
===


And the file xwayland-test.log is also empty.

In fact, my xwayland works well.
Did anyone see this before?
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel


[PATCH wayland] gitignore: add ./message-test

2014-07-06 Thread Guangyu Zhang
./message-test is generated by libtool and should be ignored by git.
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
index c146bac..d9d26ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -47,6 +47,7 @@ fixed-benchmark
 fixed-test
 list-test
 map-test
+message-test
 os-wrappers-test
 queue-test
 resources-test
-- 
2.0.1

___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: [PATCH] gitignore: add ./message-test

2014-07-06 Thread Boyan Ding
Yeah, this is necessary, but please insert this line according to
alphabetical order (i.e. after map-test).

Cheers,
Boyan Ding

On Sun, 2014-07-06 at 22:10 +0800, Guangyu Zhang wrote:
> ./message-test is generated by libtool and should be ignored by git.
> ---
>  .gitignore | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/.gitignore b/.gitignore
> index c146bac..22e6301 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -55,3 +55,4 @@ signal-test
>  socket-test
>  wayland-scanner
>  protocol/*.[ch]
> +message-test



___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: [PATCH] gitignore: add ./message-test

2014-07-06 Thread Guangyu Zhang
This patch is for the wayland project.
I'm sorry I didn't add the project tag into the title. It's my first time
using git send-email.
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel


[PATCH] gitignore: add ./message-test

2014-07-06 Thread Guangyu Zhang
./message-test is generated by libtool and should be ignored by git.
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
index c146bac..22e6301 100644
--- a/.gitignore
+++ b/.gitignore
@@ -55,3 +55,4 @@ signal-test
 socket-test
 wayland-scanner
 protocol/*.[ch]
+message-test
-- 
2.0.1

___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: [PATCH v2 3/3] Create a weston_surface_state structure for storing pending surface state and move the surface commit logic into weston_surface_commit_state

2014-07-06 Thread Pekka Paalanen
On Thu, 26 Jun 2014 11:19:05 -0700
Jason Ekstrand  wrote:

> From: Jason Ekstrand 
> 
> This new structure is used for both weston_surface.pending and
> weston_subsurface.cached.
> 
> Signed-off-by: Jason Ekstrand 
> ---
>  src/compositor.c | 270 
> +++
>  src/compositor.h |  80 +++--
>  2 files changed, 142 insertions(+), 208 deletions(-)

Nice diffstat. :-)

> diff --git a/src/compositor.c b/src/compositor.c
> index 4ccae79..be33a36 100644
> --- a/src/compositor.c
> +++ b/src/compositor.c
...
> @@ -389,6 +379,72 @@ struct weston_frame_callback {
>   struct wl_list link;
>  };
>  
> +static void
> +surface_state_handle_buffer_destroy(struct wl_listener *listener, void *data)
> +{
> + struct weston_surface_state *state =
> + container_of(listener, struct weston_surface_state,
> +  buffer_destroy_listener);
> +
> + state->buffer = NULL;
> +}
> +
> +static void
> +weston_surface_state_init(struct weston_surface_state *state)
> +{
> + state->newly_attached = 0;
> + state->buffer = NULL;
> + state->buffer_destroy_listener.notify =
> + surface_state_handle_buffer_destroy;
> + state->sx = 0;
> + state->sy = 0;
> +
> + pixman_region32_fini(&state->damage);
> + pixman_region32_fini(&state->opaque);

fini? Should it not be init?

> + region_init_infinite(&state->input);
> +
> + wl_list_init(&state->frame_callback_list);
> +
> + state->buffer_viewport.buffer.transform = WL_OUTPUT_TRANSFORM_NORMAL;
> + state->buffer_viewport.buffer.scale = 1;
> + state->buffer_viewport.buffer.src_width = wl_fixed_from_int(-1);
> + state->buffer_viewport.surface.width = -1;
> + state->buffer_viewport.changed = 0;
> +}
...
> @@ -2390,7 +2365,9 @@ weston_subsurface_commit_to_cache(struct 
> weston_subsurface *sub)
>  
>   if (surface->pending.newly_attached) {
>   sub->cached.newly_attached = 1;
> - weston_buffer_reference(&sub->cached.buffer_ref,
> + weston_surface_state_set_buffer(&sub->cached,
> + surface->pending.buffer);
> + weston_buffer_reference(&sub->cached_buffer_ref,
>   surface->pending.buffer);

Alright, you solved it this way. Seems to work, I think.

>   }
>   sub->cached.sx += surface->pending.sx;
...
> @@ -2849,7 +2803,7 @@ weston_subsurface_create(uint32_t id, struct 
> weston_surface *surface,
>  sub, subsurface_resource_destroy);
>   weston_subsurface_link_surface(sub, surface);
>   weston_subsurface_link_parent(sub, parent);
> - weston_subsurface_cache_init(sub);
> + weston_surface_state_init(&sub->cached);

Sould we explicitly init cached_buffer_ref too? For consistency and
doc value? I think I would prefer yes.

>   sub->synchronized = 1;
>  
>   return sub;
> diff --git a/src/compositor.h b/src/compositor.h
> index 06f8b03..bef5e1d 100644
> --- a/src/compositor.h
> +++ b/src/compositor.h
> @@ -789,6 +789,32 @@ struct weston_view {
>   uint32_t output_mask;
>  };
>  
> +struct weston_surface_state {
> + /* wl_surface.attach */
> + int newly_attached;
> + struct weston_buffer *buffer;
> + struct wl_listener buffer_destroy_listener;
> + int32_t sx;
> + int32_t sy;
> +
> + /* wl_surface.damage */
> + pixman_region32_t damage;
> +
> + /* wl_surface.set_opaque_region */
> + pixman_region32_t opaque;
> +
> + /* wl_surface.set_input_region */
> + pixman_region32_t input;
> +
> + /* wl_surface.frame */
> + struct wl_list frame_callback_list;
> +
> + /* wl_surface.set_buffer_transform */
> + /* wl_surface.set_scaling_factor */
> + /* wl_viewport.set */
> + struct weston_buffer_viewport buffer_viewport;
> +};
> +
>  struct weston_surface {
>   struct wl_resource *resource;
>   struct wl_signal destroy_signal;
> @@ -833,31 +859,7 @@ struct weston_surface {
>   struct wl_resource *viewport_resource;
>  
>   /* All the pending state, that wl_surface.commit will apply. */
> - struct {
> - /* wl_surface.attach */
> - int newly_attached;
> - struct weston_buffer *buffer;
> - struct wl_listener buffer_destroy_listener;
> - int32_t sx;
> - int32_t sy;
> -
> - /* wl_surface.damage */
> - pixman_region32_t damage;
> -
> - /* wl_surface.set_opaque_region */
> - pixman_region32_t opaque;
> -
> - /* wl_surface.set_input_region */
> - pixman_region32_t input;
> -
> - /* wl_surface.frame */
> - struct wl_list frame_callback_list;
> -
> - /* wl_surface.set_buffer_transform */
> - /* wl_surface.set_scaling_factor */
> - /* wl_viewport.set */
> - struct weston_bu

Re: [PATCH wayland 3/3] configure: fix publican version detection

2014-07-06 Thread Pekka Paalanen
On Wed,  2 Jul 2014 17:23:46 +1000
Peter Hutterer  wrote:

> Publican now adds a spurious "v" to the version output.
> ---
>  configure.ac | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index c7ccace..e16c5b5 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -112,7 +112,7 @@ if test "x$enable_documentation" = "xyes"; then
>   AC_PATH_PROG(PUBLICAN, publican)
>  
>   if test "x$PUBLICAN" != "x"; then
> - PUBLICAN_VERSION=[`$PUBLICAN -v | sed -e 
> 's/version=\([0-9]*\.[0-9]*\).*/\1/'`]
> + PUBLICAN_VERSION=[`$PUBLICAN -v | sed -e 
> 's/version=v\?\([0-9]*\.[0-9]*\).*/\1/'`]
>  
>   if test [ 1 -eq `echo "${PUBLICAN_VERSION} < 2.8" | bc` ]; then
>   AC_MSG_ERROR([Publican version is not supported. 
> Install publican >= 2.8 or disable the documentation using 
> --disable-documentation])
> -- 
> 1.9.3

Hi,

looks good, though I can't test due to my lack of publican. All
three pushed.

To ssh://git.freedesktop.org/git/wayland/wayland
   113aac5..5679778  master -> master


Thanks,
pq
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel