RE: Should I always add wl_display_sync() before wl_display_dispatch_queue()?

2013-10-29 Thread Zhao, Halley
Then application is blocked. So, I still think the padding wl_display_sync is required. From: Jason Ekstrand [mailto:ja...@jlekstrand.net] Sent: Tuesday, October 29, 2013 11:07 AM To: Zhao, Halley Cc: wayland-devel@lists.freedesktop.org; Antognolli, Rafael Subject: Re: Should I always add wl_display

Should I always add wl_display_sync() before wl_display_dispatch_queue()?

2013-10-28 Thread Zhao, Halley
Video player use frame callback on an event queue, sometimes there is synchronization issue. After looked at other usage of event queue, I found: In order to avoid blocking by wl_display_dispatch_queue(), a padding callback of wl_display_sync is added on purpose. Is my understanding correct? Here

RE: how to deal with the last video frame buffer (wl_buffer)?

2013-09-08 Thread Zhao, Halley
lvan de Oliveira [mailto:conselv...@gmail.com] > Sent: Wednesday, September 04, 2013 5:12 PM > To: Zhao, Halley > Cc: wayland-devel@lists.freedesktop.org; Kondapally, Kalyan; Kristensen, > Kristian H; Beauchesne, Gwenole > Subject: Re: how to deal with the last video frame buffer (wl_buffer)? &g

RE: how to deal with the last video frame buffer (wl_buffer)?

2013-09-02 Thread Zhao, Halley
erver in webkit. Seems mesa requires wayland server send wl_buffer_send_release upon attach. From: wayland-devel-bounces+halley.zhao=intel@lists.freedesktop.org [mailto:wayland-devel-bounces+halley.zhao=intel@lists.freedesktop.org] On Behalf Of Zhao, Halley Sent: Monday, September 02, 2

how to deal with the last video frame buffer (wl_buffer)?

2013-09-01 Thread Zhao, Halley
When a wl_buffer (of video frame) is committed to wayland server, this buffer keeps being used by server until a second buffer is committed. It means a wl_buffer isn't ready to destroy in frame callback, but wl_buffer_send_release(). And the buffer (in media pipeline) should also be retained for

Fail to bind wayland interface after a shell surface is created

2013-08-07 Thread Zhao, Halley
Some debugs show, after a shell surface is created, the future registry_handle_global (of wl_registry_listener) doesn't receive any interface. There are some wl_registry_listener in the stack, if I skip wl_shell_get_shell_surface from the previous bind, it will be ok. It seems: after one shell s

RE: When enabling mesa debug mode, weston will get seg fault?

2012-07-16 Thread Zhao, Halley
It seems to be some mistake in adding YUV texture support. For xrgb, the following patch works for me. Additional consideration is required for yuv format( I can try it tomorrow). >From 21682938f7ac2ab64e751b07e3bcda0516d4c6e9 Mon Sep 17 00:00:00 2001 From: Zhao Halley Date: Mon, 16 Jul 2

RE: [PATCH] add simple-drm test

2012-06-11 Thread Zhao, Halley
Hi Kristian: Are you ok with this test case for wayland-drm? Could it be added to Weston demo clients? > -Original Message- > From: Zhao, Halley > Sent: Friday, June 08, 2012 10:11 AM > To: wayland-devel@lists.freedesktop.org > Cc: Zhao, Halley > Subject: [PATCH] a

RE: [PATCH 0/4] add resize support for wl_surface damage

2012-06-10 Thread Zhao, Halley
, what's your opinion on the interactions between different parts of the protocol when we change the coordination? Thanks. > -Original Message- > From: Zhao, Halley > Sent: Thursday, June 07, 2012 11:34 AM > To: wayland-devel@lists.freedesktop.org > Cc: Zhao, Halley &

RE: [PATCH 3/3] add resize filter interface support

2012-06-08 Thread Zhao, Halley
Yeah, I'm wrong here. > -Original Message- > From: Pekka Paalanen [mailto:ppaala...@gmail.com] > Sent: Friday, June 08, 2012 5:57 PM > To: Zhao, Halley > Subject: Re: [PATCH 3/3] add resize filter interface support > > On Fri, 8 Jun 2012 17:33:58

[PATCH 3/3] add resize filter interface support

2012-06-08 Thread Zhao Halley
--- src/compositor.c | 57 +- src/compositor.h |1 + 2 files changed, 57 insertions(+), 1 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index a768ba6..365cc39 100755 --- a/src/compositor.c +++ b/src/compositor.c @@ -251,6 +

[PATCH 2/3] add filter interface (resize) to wl_surface

2012-06-08 Thread Zhao Halley
--- protocol/wayland.xml | 42 ++ 1 files changed, 42 insertions(+), 0 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index a15b5d0..5619d45 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -692,6 +692,48 @@

[PATCH 1/3] add int*, uint* support for wayland-scanner

2012-06-08 Thread Zhao Halley
--- src/scanner.c | 28 +++- 1 files changed, 23 insertions(+), 5 deletions(-) mode change 100644 => 100755 src/scanner.c diff --git a/src/scanner.c b/src/scanner.c old mode 100644 new mode 100755 index e4797b0..fcfb5a5 --- a/src/scanner.c +++ b/src/scanner.c @@ -82,12

[PATCH 0/3] Add render attributes for resize filters

2012-06-08 Thread Zhao Halley
to add overlay_brightness, overlay_contrast, overlay_hue as well, but finnally give up this time -- this interfaces is more suitable for wl_display, not wl_surface. == wayland == Zhao Halley (2): add int*, uint* support for wayland-scanner add filter attributes to wl_surface pr

[PATCH] add simple-drm test

2012-06-07 Thread Zhao Halley
wayland-drm is a protocol to share buffer between wayland server and client. it is a simple case to demonstrate how it works. when I prepares some patches for mesa to extends buffer format supported by wayland-drm, a test case is asked. then it does. --- clients/Makefile.am |

RE: [PATCH 1/4 wayland] add damage2 api

2012-06-07 Thread Zhao, Halley
nal Message- > From: wayland-devel-bounces+halley.zhao=intel@lists.freedesktop.org > [mailto:wayland-devel- > bounces+halley.zhao=intel@lists.freedesktop.org] On Behalf Of Pekka > Paalanen > Sent: Thursday, June 07, 2012 2:53 PM > To: Zhao, Halley > Cc: wayland-dev

[PATCH 4/4 v2 mesa] update test case to support resize by wl_surface_attach2

2012-06-07 Thread Zhao Halley
--- tests/wayland-drm/wayland-drm-test.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/wayland-drm/wayland-drm-test.c b/tests/wayland-drm/wayland-drm-test.c index aa6f001..5317145 100755 --- a/tests/wayland-drm/wayland-drm-test.c +++ b/tests/wayland-drm/way

[PATCH 3/4 v2 weston] add surface_attach2 to support resize

2012-06-07 Thread Zhao Halley
--- src/compositor-drm.c | 34 +- src/compositor.c | 91 + src/compositor.h |9 - src/shell.c | 51 +++- src/util.c |8 ++-- 5 files changed, 124 insertions(+), 69 d

[PATCH 2/4 v2 weston] test purpose: filter out background/cursor/shell surface disable geometry transform for overlay

2012-06-07 Thread Zhao Halley
From: Zhao halley --- src/compositor-drm.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) mode change 100644 => 100755 src/compositor-drm.c diff --git a/src/compositor-drm.c b/src/compositor-drm.c old mode 100644 new mode 100755 index d588dbf..cb55753 --

[PATCH 1/4 v2 wayland] add wl_surface attach2 to support scaling

2012-06-07 Thread Zhao Halley
--- protocol/wayland.xml | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 67ece1b..a15b5d0 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -617,6 +617,21 @@ + + +C

[PATCH 0/4 v2] add resize support for wl_surface

2012-06-07 Thread Zhao Halley
e in $mesa/test2/wayland-drm, the case hasn't commited to upstream yet) http://lists.freedesktop.org/archives/mesa-dev/2012-June/022544.html update: use wl_surface_attach2 instead of wl_surface_damage2 == wayland == Zhao Halley (1): add attach2 api protocol/way

[PATCH 4/4 test] use wl_surface_damage2 for resize

2012-06-06 Thread Zhao Halley
--- tests/wayland-drm/wayland-drm-test.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/wayland-drm/wayland-drm-test.c b/tests/wayland-drm/wayland-drm-test.c index aa6f001..2f29072 100755 --- a/tests/wayland-drm/wayland-drm-test.c +++ b/tests/wayland-drm/

[PATCH 3/4 weston] add surface_damage2 to support resize

2012-06-06 Thread Zhao Halley
--- src/compositor-drm.c | 34 src/compositor.c | 70 ++--- src/compositor.h |9 +- src/shell.c | 53 - src/util.c |8 +++--- 5 files changed, 106 i

[PATCH 2/4 weston] test purpose: filter out background/cursor/shell surface disable geometry transform for overlay

2012-06-06 Thread Zhao Halley
From: Zhao halley --- src/compositor-drm.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) mode change 100644 => 100755 src/compositor-drm.c diff --git a/src/compositor-drm.c b/src/compositor-drm.c old mode 100644 new mode 100755 index d588dbf..cb55753 --

[PATCH 1/4 wayland] add damage2 api

2012-06-06 Thread Zhao Halley
--- protocol/wayland.xml | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 67ece1b..9f2de9f 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -631,6 +631,22 @@ + + +

[PATCH 0/4] add resize support for wl_surface damage

2012-06-06 Thread Zhao Halley
e in $mesa/test2/wayland-drm, the case hasn't commited to upstream yet) http://lists.freedesktop.org/archives/mesa-dev/2012-June/022544.html == wayland == Zhao Halley (1): add damage2 api protocol/wayland.xml | 16 1 files changed, 16 insertions(+), 0 deletions(

Re: [Patch 3/5 v2] Improve wayland-drm to wayland-gbm to act as generic buffer manager for wayland

2012-05-04 Thread Zhao, Halley
weston_surface_attach() basing on wl_buffer (EGL_WAYLAND_BUFFER_WL). my patch set just extends the buffer sharing to include video driver. krh, could you give some comments? On Thu, 2012-05-03 at 16:54 +0800, Juan Zhao wrote: > On 04/23/2012 06:11 PM, Zhao, Halley wrote: > > static stru

Re: [Patch 0/5 v2] Improve wayland-drm to wayland-gbm to act as generic buffer manager for wayland

2012-04-26 Thread Zhao, Halley
Hi bnf/krh: could you take a look at these patches? thanks On Mon, 2012-04-23 at 12:02 +0300, Zhao, Halley wrote: > == version 2: > - follow Gwenole's feed back to change wayland_gbm_* to wl_gbm_* > - use Evolution to send the patch (some previous patches sent from > ou

Re: [Patch 3/5 v2] Improve wayland-drm to wayland-gbm to act as generic buffer manager for wayland

2012-04-23 Thread Zhao, Halley
update patch with additional change: change gbm_bo_create_from_handle to gbm_bo_create_from_native_handle with parameter of gbm_bo_handle diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c old mode 100644 new mode 100755 index 7bb32bd..9065c42 --- a/src/egl/drivers/d

[Patch 5/5 v2] Improve wayland-drm to wayland-gbm to act as generic buffer manager for wayland

2012-04-23 Thread Zhao, Halley
patch 5/5: file name change from drm to gbm From 55c1d4a54cfa988b9400c3bdb38d1d9cf1084950 Mon Sep 17 00:00:00 2001 From: Halley Zhao Date: Fri, 20 Apr 2012 09:49:59 +0800 Subject: [PATCH 5/5] file name change from drm to gbm --- configure.ac |4 +- src/

[Patch 4/5 v2] Improve wayland-drm to wayland-gbm to act as generic buffer manager for wayland

2012-04-23 Thread Zhao, Halley
patch 4/5:remove previous create/release_buffer in driver backend >From 3cd7d26d864db4f88dfd46a7507450be48a54323 Mon Sep 17 00:00:00 2001 From: Halley Zhao Date: Thu, 19 Apr 2012 17:35:27 +0800 Subject: [PATCH 4/5] remove previous create/release_buffer implementation from dri --- src/egl/drive

[Patch 3/5 v2] Improve wayland-drm to wayland-gbm to act as generic buffer manager for wayland

2012-04-23 Thread Zhao, Halley
patch 3/5: use wayland-gbm to create/destroy wl_buffer >From 9a5da4167d94164d97b3a53b32ecda3e46b16323 Mon Sep 17 00:00:00 2001 From: Halley Zhao Date: Thu, 19 Apr 2012 17:15:53 +0800 Subject: [PATCH 3/5] use wayland-gbm to create/destroy wl_buffer --- src/egl/drivers/dri2/egl_dri2.c

[Patch 1/5 v2] Improve wayland-drm to wayland-gbm to act as generic buffer manager for wayland

2012-04-23 Thread Zhao, Halley
patch 1/5: term change from drm to gbm in driver backend >From cdd1d1decadd65a63e7a874e2b56ef70db8cff39 Mon Sep 17 00:00:00 2001 From: Halley Zhao Date: Mon, 23 Apr 2012 16:37:53 +0800 Subject: [PATCH 2/5] term change from drm to gbm in driver backend --- src/egl/drivers/dri2/egl_dri2.c

[Patch 1/5 v2] Improve wayland-drm to wayland-gbm to act as generic buffer manager for wayland

2012-04-23 Thread Zhao, Halley
From 3297c0a4590605bfa45558ad900523e8df8cc015 Mon Sep 17 00:00:00 2001 From: Halley Zhao Date: Mon, 23 Apr 2012 16:37:21 +0800 Subject: [PATCH 1/5] term change from drm to gbm inside wayland-drm --- .../wayland/wayland-drm/protocol/wayland-drm.xml |8 +- src/egl/wayland/wayland-drm/wayland

[Patch 0/5 v2] Improve wayland-drm to wayland-gbm to act as generic buffer manager for wayland

2012-04-23 Thread Zhao, Halley
== version 2: - follow Gwenole's feed back to change wayland_gbm_* to wl_gbm_* - use Evolution to send the patch (some previous patches sent from outlook are blocked) - add patch 5 to change file names from *drm* to *gbm* == original patch information EGL implements wayland-drm protocol, ho

RE: [PATCH] wayland-egl: Add api to get window/pixmap attributes

2012-02-20 Thread Zhao, Halley
@lists.freedesktop.org] On Behalf Of Zhao, Halley Sent: Friday, February 17, 2012 5:20 PM To: wayland-devel@lists.freedesktop.org Subject: [PATCH] wayland-egl: Add api to get window/pixmap attributes wl_egl_window/wl_egl_pixmap are implemented in mesa, however these drawables can also be update in

[PATCH] wayland-egl: Add api to get window/pixmap attributes

2012-02-17 Thread Zhao, Halley
wl_egl_window/wl_egl_pixmap are implemented in mesa, however these drawables can also be update in video/camera modules. One example is that libva also manage buffer object for it, so the attributes of the drawable should be accessed outside of mesa. See Benjamin's work to enable libva for waylan