Re: [waffle] [PATCH v3 2/3] wcore: rework non-compatible mutex initialization

2015-03-30 Thread Jose Fonseca
On 27/03/15 23:28, Emil Velikov wrote: C11 does not specify a static initializer, based on the idea that the a mutex will be platform and/or implementation dependent. As such the alternative solution is to initialize the mutex with call_once/mtx_init. This will allow us to remove the transition

[waffle] [PATCH 08/10] wflinfo: add 'null' platform

2015-03-30 Thread Frank Henigman
Signed-off-by: Frank Henigman fjhenig...@google.com --- src/utils/wflinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c index 268d4b8..0a58aab 100644 --- a/src/utils/wflinfo.c +++ b/src/utils/wflinfo.c @@ -62,7 +62,7 @@ static

[waffle] [PATCH 05/10] wegl: add EGL image create/destroy

2015-03-30 Thread Frank Henigman
From: Frank Henigman fjhenig...@gmail.com Store EGLImageCreateKHR and EGLImageDestroyKHR in the EGL platform struct. Signed-off-by: Frank Henigman fjhenig...@google.com --- src/waffle/egl/wegl_platform.c | 9 - src/waffle/egl/wegl_platform.h | 4 2 files changed, 12 insertions(+),

[waffle] [PATCH 06/10] gbm: wegl_display ok in wgbm_config_get_gbm_format

2015-03-30 Thread Frank Henigman
From: Frank Henigman fjhenig...@gmail.com wgbm_config_get_gbm_format() does not need to cast the display all the way to wgbm_display; wegl_display is far enough. Now wgbm_config_get_gbm_format() can be used outside of the gbm platform. Signed-off-by: Frank Henigman fjhenig...@google.com ---

[waffle] [PATCH 01/10] wegl: enable deriving from wegl_context

2015-03-30 Thread Frank Henigman
Factor out init and teardown functions from create and destroy so a derived class can use them on its embedded wegl_context object. Signed-off-by: Frank Henigman fjhenig...@google.com --- src/waffle/egl/wegl_context.c | 79 +++

[waffle] [PATCH 02/10] gbm: make platform friendlier to derived classes

2015-03-30 Thread Frank Henigman
Retrieve additional gbm functions. Change some functions from private to public. Factor init and teardown out of create and destroy respectively, so a derived class can used them on its embedded platform object. Signed-off-by: Frank Henigman fjhenig...@google.com ---

[waffle] [PATCH 09/10] gl_basic: add 'null' platform

2015-03-30 Thread Frank Henigman
Signed-off-by: Frank Henigman fjhenig...@google.com --- examples/gl_basic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/gl_basic.c b/examples/gl_basic.c index 8f59d21..ab9c78c 100644 --- a/examples/gl_basic.c +++ b/examples/gl_basic.c @@ -243,6 +243,7 @@ static const struct