Re: [waffle] [PATCH] pkg arch/mac: Update release tarball urls

2014-05-09 Thread Emil Velikov
On 09/05/14 18:58, Jordan Justen wrote: Signed-off-by: Jordan Justen jordan.l.jus...@intel.com --- Note: I did not test these changes. The arch change looks and work like a charm. Feel free to slap Reviewed-by/Tested-by: Emil Velikov emil.l.veli...@gmail.com Just added your tree to git

[waffle] [PATCH 0/8] Move WAFFLE_API out of the public header + misc patches

2014-05-24 Thread Emil Velikov
Hi all, Here is a small selection of patches - mostly bugfixes, while going though waffle's existing implementations and working on wgl. The series is available in the for-upstream branch at my github repo https://github.com/evelikov/waffle Comments, tips and suggestions are greatly

[waffle] [PATCH 8/8] core: update wcore_enum_to_string()

2014-05-24 Thread Emil Velikov
Add a couple of missing cases - PLATFORM_GBM and DL_OPENGL_ES3. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/core/wcore_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/waffle/core/wcore_util.c b/src/waffle/core/wcore_util.c index 1cd5825..2276dde 100644

[waffle] [PATCH 1/8] cgl: remove unused forward declaration of linux_platform

2014-05-24 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/cgl/cgl_platform.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/waffle/cgl/cgl_platform.h b/src/waffle/cgl/cgl_platform.h index 71bf5b8..06cd834 100644 --- a/src/waffle/cgl/cgl_platform.h +++ b/src/waffle/cgl

[waffle] [PATCH 2/8] pkg/archlinux: Update to a dual (+multilib) package

2014-05-24 Thread Emil Velikov
Include both 64bit and multilib binaries when building on x86-64 platform. This saves us deeping track of version numbers and interdependencies in case of a split package. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- pkg/archlinux/waffle-1.3.0/PKGBUILD | 84

[waffle] [PATCH 4/8] cmake: use the relative path in the install targets

2014-05-24 Thread Emil Velikov
Otherwise make DESTDIR=... install will not function properly. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- CMakeLists.txt| 4 ++-- doc/CMakeLists.txt| 4 ++-- examples/CMakeLists.txt | 2 +- include/CMakeLists.txt| 2 +- man/html.cmake| 2

[waffle] [PATCH 5/8] cmake: reformat/update install targets

2014-05-24 Thread Emil Velikov
Cleanup the formatting and add component for each build target. The latter will allow us to use CPack to create a component based installer for Windows. Additionally install wflinfo to CMAKE_INSTALL_BINDIR rather than hardcoding it to 'bin'. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com

Re: [waffle] [PATCH 2/8] pkg/archlinux: Update to a dual (+multilib) package

2014-05-24 Thread Emil Velikov
On 24/05/14 23:51, Emil Velikov wrote: Include both 64bit and multilib binaries when building on x86-64 platform. This saves us deeping track of version numbers and interdependencies in case of a split package. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- pkg/archlinux/waffle

Re: [waffle] [GSOC 2014] How to deal with non win32 api, wgl(Create, Make)Context depends on existing window

2014-05-25 Thread Emil Velikov
On 25/05/14 21:35, Jordan Justen wrote: On Sat, May 24, 2014 at 12:28 PM, Emil Velikov emil.l.veli...@gmail.com wrote: * Library dependencies, etc. (low priority) libwaffle-1.dll depends on mingw-w64 dlls - should we nuke the dependency, ship them in the zip or leave it to the user/dev

Re: [waffle] [GSOC 2014] How to deal with non win32 api, wgl(Create, Make)Context depends on existing window

2014-05-28 Thread Emil Velikov
On 24/05/14 20:28, Emil Velikov wrote: Hi all, Another round of interesting bits and bulbs. Bit of an update: The email came out a bit longer than expected, although it provides a decent list of possible solutions. Let me know which one you'll go with. Four topics sorted by priority

Re: [waffle] [GSOC 2014] How to deal with non win32 api, wgl(Create, Make)Context depends on existing window

2014-05-28 Thread Emil Velikov
On 28/05/14 20:37, Emil Velikov wrote: window_handle = CreateWindow(...) device_context = GetDC(window_handle); gl_rendering_context = wglCreateContext(device_context); wglMakeCurrent (device_handle, gl_rendering_context); // any of the following wglGetProcAddress

Re: [waffle] [PATCH 5/8] cmake: reformat/update install targets

2014-05-30 Thread Emil Velikov
On 31/05/14 01:43, Chad Versace wrote: On Sat, May 24, 2014 at 11:51:32PM +0100, Emil Velikov wrote: Cleanup the formatting and add component for each build target. The latter will allow us to use CPack to create a component based installer for Windows. I've never used CPack, so my review

[waffle] [PATCH 08/10] cgl: avoid leaking the PixelFormat

2014-05-30 Thread Emil Velikov
-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/cgl/cgl_config.m | 4 1 file changed, 4 insertions(+) diff --git a/src/waffle/cgl/cgl_config.m b/src/waffle/cgl/cgl_config.m index 7a74438..5252e12 100644 --- a/src/waffle/cgl/cgl_config.m +++ b/src/waffle/cgl/cgl_config.m @@ -50,6 +50,9

[waffle] [PATCH 04/10] cmake: add autodetection for waffle_has_egl, glx...

2014-05-30 Thread Emil Velikov
Silence the pkg_check_modules and check set the default options depending on the packages found. Error out if the user has selected an option and it's requirements are not met. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- CMakeLists.txt | 2

[waffle] [PATCH 05/10] waffle: remove found_platform from waffle_init_parse_attrib_list

2014-05-30 Thread Emil Velikov
Whenever a platform is missing a case statement, the default will kick in throwing an error and exiting the function. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/api/waffle_init.c | 9 - 1 file changed, 9 deletions(-) diff --git a/src/waffle/api/waffle_init.c b

[waffle] [PATCH 03/10] waffle: remove restrict keyword from public API

2014-05-30 Thread Emil Velikov
the man pages. Resolves #11: https://github.com/waffle-gl/waffle/issues/11 Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- include/waffle/waffle.h | 8 ++-- man/waffle_is_extension_in_string.3.xml | 4 ++-- src/waffle/api/waffle_gl_misc.c | 4 3 files

[waffle] [PATCH 10/10] glx: glx_context_create_native returns GLXContext not bool

2014-05-30 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/glx/glx_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/waffle/glx/glx_context.c b/src/waffle/glx/glx_context.c index c7a7d91..62573dc 100644 --- a/src/waffle/glx/glx_context.c +++ b/src/waffle

Re: [waffle] [GSOC 2014] How to deal with non win32 api, wgl(Create, Make)Context depends on existing window

2014-05-31 Thread Emil Velikov
On 31/05/14 19:59, Jose Fonseca wrote: - Original Message - On 24/05/14 20:28, Emil Velikov wrote: [snip] AFAICS waffle is unique wrt other projects (apitrace, epoxy, glut) as it allows the PixelFormat to be called prior to the creation of either window or context. Options

[waffle] [PATCH 2/3] wflinfo: don't leak the current context

2014-06-01 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/utils/wflinfo.c | 4 1 file changed, 4 insertions(+) diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c index eba4e8f..9486361 100644 --- a/src/utils/wflinfo.c +++ b/src/utils/wflinfo.c @@ -1062,6 +1062,10 @@ main(int argc

[waffle] [PATCH 0/3] Memory leak fixes

2014-06-01 Thread Emil Velikov
Spotted while searching for a severe memory corruption under wgl. Did not manage to find it yet, although notices these bad boys. I will case the corruption bug over the next few days + cleanupsplit the patches hopefully I will see what's going wrong, or perhaps someone will be kind enough to

[waffle] [PATCH 1/3] gbm: cleanup memory leaks

2014-06-01 Thread Emil Velikov
Avoid leaking udev and udev_enumerate. Spotted while searching for invalid memory access in the wgl platform. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/gbm/wgbm_display.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/waffle/gbm

[waffle] [PATCH 3/3] examples/gl_basic: don't leak the current context

2014-06-01 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- examples/gl_basic.c | 4 1 file changed, 4 insertions(+) diff --git a/examples/gl_basic.c b/examples/gl_basic.c index 22b6abf..8e1a28c 100644 --- a/examples/gl_basic.c +++ b/examples/gl_basic.c @@ -613,6 +613,10 @@ main(int argc, char

Re: [waffle] [GSOC 2014] How to deal with non win32 api, wgl(Create, Make)Context depends on existing window

2014-06-03 Thread Emil Velikov
On 02/06/14 19:55, Chad Versace wrote: On Sat, May 31, 2014 at 12:02:10PM -0700, Jose Fonseca wrote: - Original Message - - Original Message - On 24/05/14 20:28, Emil Velikov wrote: Hi all, Another round of interesting bits and bulbs. Bit of an update: The email came

Re: [waffle] [GSOC 2014] How to deal with non win32 api, wgl(Create, Make)Context depends on existing window

2014-06-04 Thread Emil Velikov
On 04/06/14 21:18, Jose Fonseca wrote: - Original Message - On Sun, May 25, 2014 at 08:00:49PM -0700, Jordan Justen wrote: On Sun, May 25, 2014 at 2:43 PM, Emil Velikov emil.l.veli...@gmail.com wrote: On 25/05/14 21:35, Jordan Justen wrote: On Sat, May 24, 2014 at 12:28 PM, Emil

[waffle] [GSOC2014] Current design/implementation + the infamous corruption

2014-06-04 Thread Emil Velikov
Hi all, Over the last few days I have been though some head-scratching and re-writing things, in order to resolve an interesting memory corruption to no avail :'( Before explaining more about the issue here is some info about the current design + where to get the patches. Let me know if you

Re: [waffle] [GSOC2014] Current design/implementation + the infamous corruption

2014-06-05 Thread Emil Velikov
On 05/06/14 03:19, Emil Velikov wrote: Hi all, Over the last few days I have been though some head-scratching and re-writing things, in order to resolve an interesting memory corruption to no avail :'( Before explaining more about the issue here is some info about the current design

Re: [waffle] [PATCH 05/10] waffle: remove found_platform from waffle_init_parse_attrib_list

2014-06-06 Thread Emil Velikov
On 06/06/14 07:25, Chad Versace wrote: On Sat, May 31, 2014 at 03:22:03AM +0100, Emil Velikov wrote: Whenever a platform is missing a case statement, the default will kick in throwing an error and exiting the function. Ah, but that's not what 'found_platform' is checking

Re: [waffle] [PATCH 04/10] cmake: add autodetection for waffle_has_egl, glx...

2014-06-06 Thread Emil Velikov
On 06/06/14 07:18, Chad Versace wrote: On Sat, May 31, 2014 at 03:22:02AM +0100, Emil Velikov wrote: Silence the pkg_check_modules and check set the default options depending on the packages found. This is a good idea and will make Waffle easier to configure for everyone. There are a few

Re: [waffle] [PATCH 01/10] pkg/archlinux: Update to a dual (+multilib) package

2014-06-06 Thread Emil Velikov
On 06/06/14 06:55, Chad Versace wrote: On Sat, May 31, 2014 at 03:21:59AM +0100, Emil Velikov wrote: Include both 64bit and multilib binaries when building on x86-64 platform. This saves us deeping track of version numbers and interdependencies in case of a split package. v2: Rebase and bump

[waffle] [PATCHv2 04/10] cmake: add autodetection for waffle_has_egl, glx...

2014-06-06 Thread Emil Velikov
Silence the pkg_check_modules and check set the default options depending on the packages found. Error out if the user has selected an option and it's requirements are not met. v2: - Do not silence pkg_check_modules. - Explicitly list the failing requirements. Signed-off-by: Emil Velikov

Re: [waffle] [GSOC2014] Current design/implementation + the infamous corruption

2014-06-06 Thread Emil Velikov
On 06/06/14 14:00, Jose Fonseca wrote: - Original Message - On 05/06/14 03:19, Emil Velikov wrote: Hi all, Over the last few days I have been though some head-scratching and re-writing things, in order to resolve an interesting memory corruption to no avail :'( Before

Re: [waffle] Waffle and GL dispatch

2014-06-26 Thread Emil Velikov
On 24/06/14 20:31, Eric Anholt wrote: Emil Velikov emil.l.veli...@gmail.com writes: Hi all, Recently I've noticed that a while back Eric took a stab at getting piglit's gl dispatch (insanity) inside waffle. Unfortunately the mailing list is rather silent on the topic. Does anyone know

Re: [waffle] [PATCH] core: Remove empty structs from core objects

2014-07-02 Thread Emil Velikov
with a pair of safe typecast functions that provide bidirectional casting waffle_OBJ - wcore_OBJ. While we cannot use container_of() prior to casting I believe that we should be safe for the time being. Thank you. It works like a charm. Reviewed-by: Emil Velikov emil.l.veli...@gmail.com Reported

[waffle] [PATCH 07/33] linux: plug a memory leak

2014-07-07 Thread Emil Velikov
-destroy() and effectively cleanup this and other memory hunks. Chad, do you have a plan/idea how to handle this ? I'm assuming that your plan is to tackle this once waffle_init is gone/replaced with a better solution (issue #7). Cc: Chad Versace chad.vers...@linux.intel.com Signed-off-by: Emil Velikov

[waffle] [PATCH 08/33] core: return false on failure in waffle_window_resize

2014-07-07 Thread Emil Velikov
The function return type is bool not *. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/api/waffle_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/waffle/api/waffle_window.c b/src/waffle/api/waffle_window.c index 207ef33..81f95f8 100644

[waffle] [PATCH 17/33] core: Convert to c11 threads

2014-07-07 Thread Emil Velikov
Will allow us more freedom wrt building/using waffle on multiple OS's (mostly non-posix). Note that pthreads_once has been converted to call_once which can never fail. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/CMakeLists.txt | 1 + src/waffle/core

[waffle] [PATCH 24/33] core: use compiler specific (noreturn)

2014-07-07 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/core/wcore_tinfo.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/waffle/core/wcore_tinfo.c b/src/waffle/core/wcore_tinfo.c index 7d749b7..9a190f9 100644 --- a/src/waffle/core/wcore_tinfo.c

[waffle] [PATCH 22/33] core: wcore_error_unittest include c99_compat.h

2014-07-07 Thread Emil Velikov
... in order for us to use the snprintf when building with msvc. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/core/wcore_error_unittest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/waffle/core/wcore_error_unittest.c b/src/waffle/core

[waffle] [PATCH 10/33] cmake: build with fPIC when possible

2014-07-07 Thread Emil Velikov
Some of our third_party libraries may be build without it thus we'll fail at link tim. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- cmake/Modules/WaffleDefineCompilerFlags.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/Modules/WaffleDefineCompilerFlags.cmake b

[waffle] [PATCH 03/33] cgl: avoid leaking the PixelFormat

2014-07-07 Thread Emil Velikov
-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/cgl/cgl_config.m | 4 1 file changed, 4 insertions(+) diff --git a/src/waffle/cgl/cgl_config.m b/src/waffle/cgl/cgl_config.m index 7a74438..5252e12 100644 --- a/src/waffle/cgl/cgl_config.m +++ b/src/waffle/cgl/cgl_config.m @@ -50,6 +50,9

[waffle] [PATCH 09/33] wflinfo: silence signed/unsigned comparison warning

2014-07-07 Thread Emil Velikov
The variable i is used as and compared vs unsigned int. Change it's type so silcence the compiler warning. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/utils/wflinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c

[waffle] [PATCH 28/33] examples/gl_basic: properly annotate the function pointers

2014-07-07 Thread Emil Velikov
Windows uses a different calling convention than linux for their public API (__stdcall vs __cdelc). Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- examples/gl_basic.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/examples/gl_basic.c b

[waffle] [PATCH 30/33] tests/gl_basic_test: properly annotate the function pointers

2014-07-07 Thread Emil Velikov
Windows uses a different calling convention than linux for their public API (__stdcall vs __cdelc). Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/functional/gl_basic_test.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git

[waffle] [PATCH 31/33] utils/wlfinfo: use define to provide buffer lenght

2014-07-07 Thread Emil Velikov
... as char buffer[const int] does not work under msvc. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/utils/wflinfo.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c index a76f9fc..94ecfea 100644 --- a/src

[waffle] [PATCH 21/33] tests/gl_basic_test: don't include posix headers when building for win32

2014-07-07 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/functional/gl_basic_test.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/functional/gl_basic_test.c b/tests/functional/gl_basic_test.c index 035b221..928008b 100644 --- a/tests/functional/gl_basic_test.c +++ b/tests

[waffle] [PATCH 27/33] examples/simple-x11-egl: properly annotate the function pointers

2014-07-07 Thread Emil Velikov
Windows uses a different calling convention than linux for their public API (__stdcall vs __cdelc). Properly annotate the pointers until waffle becomes aware how to deal with GL dispatch. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- examples/simple-x11-egl.c | 12 ++-- 1 file

[waffle] [PATCH 29/33] utils/wflinfo: properly annotate the function pointers

2014-07-07 Thread Emil Velikov
Windows uses a different calling convention than linux for their public API (__stdcall vs __cdelc). Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/utils/wflinfo.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/utils/wflinfo.c b/src/utils

[waffle] [PATCH 25/33] examples/gl_basic: use compiler specific (noreturn)

2014-07-07 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- examples/gl_basic.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/examples/gl_basic.c b/examples/gl_basic.c index 28af1ca..6a399bd 100644 --- a/examples/gl_basic.c +++ b/examples/gl_basic.c @@ -109,7

[waffle] [PATCH 20/33] third_party/getopt: include BSD licensed getopt implementation

2014-07-07 Thread Emil Velikov
Used by utils/wflinfo and examples/gl_basic. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- CMakeLists.txt| 8 + examples/CMakeLists.txt | 2 +- src/utils/CMakeLists.txt | 2 +- third_party/getopt/CMakeLists.txt | 10 + third_party/getopt

[waffle] [PATCH 26/33] utils/wflinfo: use compiler specific (noreturn)

2014-07-07 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/utils/wflinfo.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c index 58028f9..54ff7f6 100644 --- a/src/utils/wflinfo.c +++ b/src/utils/wflinfo.c @@ -123,7

Re: [waffle] Some new and old fixes

2014-07-07 Thread Emil Velikov
On 07/07/14 18:28, Emil Velikov wrote: Hi all, After respinning the latest changes (and ripping out WGL as it requires some api/abi changes) here is a lovely list of fixes that gets us closer to building waffle with mingw/msvc. The first four patches are old (three cgl fixes that Chad

Re: [waffle] Some new and old fixes

2014-07-14 Thread Emil Velikov
On 07/07/14 18:28, Emil Velikov wrote: Hi all, After respinning the latest changes (and ripping out WGL as it requires some api/abi changes) here is a lovely list of fixes that gets us closer to building waffle with mingw/msvc. The first four patches are old (three cgl fixes that Chad

Re: [waffle] Some new and old fixes

2014-07-15 Thread Emil Velikov
On 15/07/14 17:30, Jose Fonseca wrote: On 15/07/14 17:22, Emil Velikov wrote: On 15/07/14 15:35, Jose Fonseca wrote: On 07/07/14 18:28, Emil Velikov wrote: Hi all, After respinning the latest changes (and ripping out WGL as it requires some api/abi changes) here is a lovely list of fixes

Re: [waffle] Some new and old fixes

2014-07-16 Thread Emil Velikov
On 15 July 2014 19:09, Jose Fonseca jfons...@vmware.com wrote: On 15/07/14 18:14, Emil Velikov wrote: On 15/07/14 17:30, Jose Fonseca wrote: [snip] I would appreciate if you can find out where SDKDDKVer.h and windows.h are located for the v120 toolset and which program provided them. Here

Re: [waffle] [PATCH 07/33] linux: plug a memory leak

2014-07-17 Thread Emil Velikov
On 17/07/14 04:45, Chad Versace wrote: On 07/07/2014 10:28 AM, Emil Velikov wrote: Chad, do you have a plan/idea how to handle this ? I'm assuming that your plan is to tackle this once waffle_init is gone/replaced with a better solution (issue #7). There appears to be a straightforward

[waffle] [PATCH 16.2/33] third_party/threads: use intptr_t for intvoid* typecasting

2014-07-22 Thread Emil Velikov
-cast] Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- AFAICS the warnings make things look scarier that what they truly are. Carry on reading for more details. The C11 threads API uses void* in order to be to move flexible while the POSIX threads uses int throughout. As we consistently

[waffle] [PATCH 16.1/33] third_party/threads: add missing brackets around _MTX_INITIALIZER_NP

2014-07-22 Thread Emil Velikov
... for win32 builds. Spotted by gcc(mingw-w64) src/waffle/core/wcore_display.c:37:5: warning: missing braces around initializer [-Wmissing-braces] static mtx_t mutex = _MTX_INITIALIZER_NP; ^ Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- third_party/threads/threads.h | 2

[waffle] [PATCH 02/18] pkg/archlinux: add mingw-w64-waffle package

2014-07-22 Thread Emil Velikov
the build twice issue. - Strip some/all of the binaries ? - Current package works of a local git repo. Rename to -git or convert to a release one ? Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- pkg/archlinux/mingw-w64-waffle/PKGBUILD | 80 + 1 file

[waffle] [PATCH 16/18] wgl: restrict exported symbols via module-definition file

2014-07-22 Thread Emil Velikov
msvc complains if the function declaration does not match its definition (__declspec(dllexport)) thus to avoid messing up with the public header, simply use a .def file. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/CMakeLists.txt | 12 src/waffle/api

[waffle] [PATCH 11/18] wgl: use wglChoosePixelFormatARB when available

2014-07-22 Thread Emil Velikov
With this commit we create an assumption that the root window DC (device context) is compatible with the one for the new window. Otherwise the pixel format will not be compatible, and we'll fail at SetPixelFormat(). Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/wgl

Re: [waffle] [PULL] waffle-fixes

2014-07-27 Thread Emil Velikov
Humble ping :) On 22/07/14 20:42, Emil Velikov wrote: Hi Chad, Can you please pull the series into master. It contains most of the lengthy series of fixes that was flowing on the mailing-list. Note: - Decided to drop the msvc inspired/specific changes until WGL is in. - Includes two

Re: [waffle] [PATCH] android: misc build fixes

2014-07-31 Thread Emil Velikov
On 31/07/14 16:29, Chad Versace wrote: On 07/31/2014 06:14 AM, Emil Velikov wrote: - Add $(top)/include to the local_c_includes. Required for c99_compat.h header. - Build third_party/threads library, add $(top)/third_party/threads to local_c_includes (for threads.h

[waffle] [PATCHv2 02/19] pkg/archlinux: add mingw-w64-waffle package

2014-08-04 Thread Emil Velikov
the build twice issue. - Strip some/all of the binaries ? - Current package works of a local git repo. Rename to -git or convert to a release one ? v2: - Use single leading underscore for local variables. - Read user _srcroot if available. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com

Re: [waffle] [PATCH 13/18] api: make dl_can_open() dl_sym() display dependent

2014-08-18 Thread Emil Velikov
On 18/08/14 22:40, Chad Versace wrote: On 08/13/2014 03:47 PM, Emil Velikov wrote: On 13/08/14 23:23, Chad Versace wrote: On 07/22/2014 08:31 PM, Emil Velikov wrote: This will allow us to correctly work around waffle design which allows the a library to be dl_open'ed if we support

Re: [waffle] [PATCH 13/18] api: make dl_can_open() dl_sym() display dependent

2014-08-19 Thread Emil Velikov
August 2014 01:35, Emil Velikov emil.l.veli...@gmail.com wrote: On 18/08/14 22:40, Chad Versace wrote: On 08/13/2014 03:47 PM, Emil Velikov wrote: On 13/08/14 23:23, Chad Versace wrote: On 07/22/2014 08:31 PM, Emil Velikov wrote: This will allow us to correctly work around waffle design which

[waffle] [PATCH 2/2] core/tests: silence the final MSVC warning

2014-08-20 Thread Emil Velikov
Avoid forcing intptr_t down a variable of type int. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/core/wcore_error_unittest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/waffle/core/wcore_error_unittest.c b/src/waffle/core/wcore_error_unittest.c

Re: [waffle] Final (GSoCwise) waffle WGL release

2014-08-21 Thread Emil Velikov
On 21/08/14 00:15, Chad Versace wrote: On 08/20/2014 06:55 AM, Emil Velikov wrote: waffle works like a champ with WGL, even piglit approves :P With branches 'yet-another-round-of-msvc-fixes-1.2' [1] and 'waffle-WGL-1.2' I can run piglit+waffle+wgl on my Windows 7 machine and even crash

[waffle] [PATCHv2 13/18] wgl: provide static GLES* symbols (dlsym) via

2014-08-21 Thread Emil Velikov
recommended check the function's return value. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- With all the ranting aside a completely different approach towards the problem, which has a negative delta :P -Emil src/waffle/wgl/wgl_dl.c | 12 ++-- 1 file changed, 2 insertions

[waffle] [PULL] Waffle WGL support

2014-08-21 Thread Emil Velikov
://github.com/evelikov/waffle.git for-upstream-WGL+fixes-pull for you to fetch changes up to 0d4ffa247581e7b1b1adae84f88c8b14692c2e83: examples/gl_basic: move variable declaration before code (2014-08-21 12:39:44 +0100) Emil Velikov

Re: [waffle] [PATCH 13/18] api: make dl_can_open() dl_sym() display dependent

2014-08-21 Thread Emil Velikov
On 20/08/14 23:11, Chad Versace wrote: On 08/18/2014 05:35 PM, Emil Velikov wrote: On 18/08/14 22:40, Chad Versace wrote: On 08/13/2014 03:47 PM, Emil Velikov wrote: On 13/08/14 23:23, Chad Versace wrote: On 07/22/2014 08:31 PM, Emil Velikov wrote: This will allow us to correctly work around

[waffle] [PATCH 0/3] Cleanup linking hacks

2014-08-21 Thread Emil Velikov
Hello list, As promised here is another series from your truly :P This one removes a linking hack we added a while back and prevent over-linking when we have the library/deps but do not build that particular waffle back-end eg. wayland is present on my system but I provide

[waffle] [PATCH 1/3] cmake: drop the LINK_INTERFACE_LIBRARIES hack

2014-08-21 Thread Emil Velikov
It was added in order to silence Debian's packagin system which detected that wflinfo has unused direct deps (is overlinked). Properly annotate waffle's libdeps as PRIVATE this way they won't get propagated to wflinfo and other objects that link against libwaffle. Signed-off-by: Emil Velikov

[waffle] [PATCH 3/3] egl: drop explicit linking against libEGL.so

2014-08-26 Thread Emil Velikov
... by using the function pointers retrieved via dlsym() at wegl_platform_init() time. This effectively allows waffle to be distributed on systems that lack the library. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- .../Modules/WafflePrintConfigurationSummary.cmake | 1 - src/waffle

[waffle] [PATCH 2/3] egl: retrieve the libEGL function pointers at wegl_platform_init()

2014-08-26 Thread Emil Velikov
Which will be used in our next step, to make libEGL free waffle. Paving the way of waffle to have little to-no dependencies. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/egl/wegl_platform.c | 70 -- src/waffle/egl/wegl_platform.h

[waffle] [PATCH 1/3] egl: add preliminary wegl_platform

2014-08-26 Thread Emil Velikov
Will be used to store all the egl function pointers, in order to avoid linking against libEGL.so. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/CMakeLists.txt | 1 + src/waffle/egl/wegl_platform.c| 44 + src/waffle/egl

[waffle] Hopes and plans for waffle-next

2014-08-26 Thread Emil Velikov
Hello list, Following my GSoC, I would like to list a couple of things that I think would be great to have and hope to get in for waffle-2 (or whatever the next version might be). * WGL support for core Waffle, tests de-duplication and WGL support. * Linking - drop LINK_INTERFACE_LIBRARIES

Re: [waffle] Hopes and plans for waffle-next

2014-08-27 Thread Emil Velikov
/v1.1 Jose On 26/08/14 19:09, Emil Velikov wrote: Hello list, Following my GSoC, I would like to list a couple of things that I think would be great to have and hope to get in for waffle-2 (or whatever the next version might be). * WGL support for core Waffle, tests de-duplication

Re: [waffle] [PATCH] cmake: wire up check and check-func with valgrind

2014-09-17 Thread Emil Velikov
On 18/09/14 00:31, Chad Versace wrote: On 09/10/2014 05:23 AM, Emil Velikov wrote: On 10/09/14 01:38, Emil Velikov wrote: Add a valgrind-* counterpart for each target. Note that the valgrind-check-func seems to leak like a sleeve yet I'm suspecting that part of it is due to cmocka :P Small

Re: [waffle] [PATCH] cmake: bump minimum cmake requirement to 2.8.11

2014-09-26 Thread Emil Velikov
On 26/09/14 11:29, Emil Velikov wrote: commit 43f55fb150ac66498d29f33e5eaa49a1cb456f7e Author: Emil Velikov emil.l.veli...@gmail.com Date: Fri Jul 18 14:09:03 2014 +0100 cmake: rework cmocka build process Reworked the cmocka build yet it introduced a dependency

Re: [waffle] Checking In

2014-10-22 Thread Emil Velikov
Hi Chad, On 11/09/14 15:43, Chad Versace wrote: On 09/07/2014 05:37 PM, Jordan Justen wrote: Emil has made some progress on the linking issue. https://github.com/waffle-gl/waffle/issues/9 This might be something to also consider for 2.0, but might delay it a bit. Having a year between

Re: [waffle] Drop the libEGL linking, take 2

2014-11-08 Thread Emil Velikov
On 08/11/14 20:58, Chad Versace wrote: On Sat 08 Nov 2014, Emil Velikov wrote: On 08/11/14 05:18, Chad Versace wrote: On Wed 10 Sep 2014, Emil Velikov wrote: Changes comparing to previous round - raised the severity on dlopen/dlsym - crushed some typos - use the versioned lib on linux

[waffle] [PULL] WGL support

2014-11-09 Thread Emil Velikov
) Emil Velikov (53): cmake: include the CPACK module pkg/archlinux: add mingw-w64-waffle package README: Add notes when building Waffle for Windows. wgl: add skeleton implementation wgl: fill up the dl_* hooks wgl: implement display management wgl

[waffle] [PATCH 47/53] cmake: ensure waffle-static name differs from the shared one

2014-11-09 Thread Emil Velikov
will clash with the one for static waffle. Cc: Chad Versace chad.vers...@linux.intel.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/waffle/CMakeLists.txt b/src/waffle/CMakeLists.txt index

[waffle] [PATCH 51/53] README: fix spelling typo

2014-11-09 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- README.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.txt b/README.txt index bebc176..c9ffee2 100644 --- a/README.txt +++ b/README.txt @@ -300,7 +300,7 @@ but may work if the appropriate environment is setup

[waffle] [PATCH 50/53] wgl: s/glX/wgl/ in error message

2014-11-09 Thread Emil Velikov
Spotted while running through piglits and the test required OGL 4.0 context on my OGL 3.3 card. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com Reviewed-by: Chad Versace chad.vers...@linux.intel.com --- src/waffle/wgl/wgl_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[waffle] [PATCH 49/53] README: spelling fixes

2014-11-09 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- README.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.txt b/README.txt index e18da31..bebc176 100644 --- a/README.txt +++ b/README.txt @@ -257,7 +257,7 @@ The following commands build Waffle, run its

[waffle] [PATCH 13/53] wgl: provide static GLES* symbols (dlsym) via opengl32.dll

2014-11-09 Thread Emil Velikov
recommended check the function's return value. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/waffle/wgl/wgl_dl.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/waffle/wgl/wgl_dl.c b/src/waffle/wgl/wgl_dl.c index eb9ef46..9d05cb9 100644

[waffle] [PATCH 52/53] man: spelling/grammar fix

2014-11-09 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- man/waffle_get_proc_address.3.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/waffle_get_proc_address.3.xml b/man/waffle_get_proc_address.3.xml index fea2dff..333e127 100644 --- a/man/waffle_get_proc_address.3

Re: [waffle] [PATCH 47/53] cmake: ensure waffle-static name differs from the shared one

2014-11-09 Thread Emil Velikov
A lovely note which I've complete forgot. Fwiw we can squash this patch with 'cmake: Set default location for all artifacts to top-level directories' as it essentially introduces the regression. -Emil On 09/11/14 22:58, Emil Velikov wrote: In our current state 'make check/check-func

[waffle] [PATCH 1/7] pkg/archlinux: use configure autodetection

2014-11-10 Thread Emil Velikov
Since waffle 1.4 we have autodetection at configure time. Let's use it and drop a couple of lines PKGBUILD magic. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- pkg/archlinux/waffle-1.4.1/PKGBUILD | 6 +- pkg/archlinux/waffle-git/PKGBUILD | 4 2 files changed, 1 insertion

Re: [waffle] [PULL] WGL support

2014-11-10 Thread Emil Velikov
On 10/11/14 06:17, Chad Versace wrote: On Sun 09 Nov 2014, Emil Velikov wrote: As mentioned earlier here is a rebase of all the wgl work so far on top of origin/master. Merged to next! So... what does that mean??? That means I'll merge your branch to 'master' after it cooks for a little

[waffle] [PATCH 2/7] pkg/archlinux: waffle does not link against libegl

2014-11-10 Thread Emil Velikov
As such demote libegl to makedepend/optdepent, so that one can build waffle, and optionally use x11_egl/gbm/wayland. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- pkg/archlinux/waffle-git/PKGBUILD | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/archlinux

Re: [waffle] [RFC v2] wflinfo: add GLSL version information to wflinfo

2014-11-15 Thread Emil Velikov
Hi Dylan, On 14/11/14 17:39, Dylan Baker wrote: v2: - Don't print for gles1, since gles1 doesn't have a shading language and will always return FLINFO_GL_ERROR Signed-off-by: Dylan Baker dylanx.c.ba...@intel.com --- This addresses Jordan's comments, but from the point of view of

Re: [waffle] [RFC] Add display support to GBM backend

2014-11-20 Thread Emil Velikov
Hi all, On 19/11/14 19:38, Chad Versace wrote: Frank sent this patch as a proof-of-concept. It's a draft, and not ready for committing. I'm posting to the list just to start discussion. See [https://github.com/waffle-gl/waffle/issues/18]. I think detailed patch discussions like this are

[waffle] [PATCH] features: list experimental WGL support

2014-11-21 Thread Emil Velikov
Coming as a product of my GSoC2014, with Waffle 1.5.0 Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- features.html | 4 1 file changed, 4 insertions(+) diff --git a/features.html b/features.html index 03054b1..2bfaffa 100644 --- a/features.html +++ b/features.html @@ -25,6 +25,10

Re: [waffle] merge of evelikov/remove-libgbm-libgl-libdeps-v2 breaks piglit compilation

2014-11-24 Thread Emil Velikov
in PIGLIT_BUILD_DMA_BUG_TESTS as you typed in it here. Otherwise the dma_buf tests may not have been built :) -Emil On 24/11/14 22:35, Emil Velikov wrote: Hi there, The other day I've noticed that piglit's linkdeps are completely broken, and that things were working due to shear luck :\ I was hoping

Re: [waffle] merge of evelikov/remove-libgbm-libgl-libdeps-v2 breaks piglit compilation

2014-11-26 Thread Emil Velikov
On 25/11/14 16:32, Mark Janes wrote: Emil Velikov emil.l.veli...@gmail.com writes: Mark, expect piglit to keep causing you problems, as someone seriously needs give it some love. Addressing the cmake warnings would a nice start :) I wouldn't mind taking a look at this. I have a couple

Re: [waffle] Proposed releases for tomorrow (Tue 2 Dec)

2014-12-03 Thread Emil Velikov
On 01/12/14 18:59, Chad Versace wrote: There are several fixes in the maintenance branch, and master now has WGL support. So I'm planning to release waffle-1.4.2 and waffle-1.5.0-rc1 tomorrow (Tue 2 Dec). Let me know if you think I should postpone 1.5.0-rc1, or if you want to see a

Re: [waffle] [PATCH] cmake: Fix FindWaffle.cmake to check versions correctly

2014-12-15 Thread Emil Velikov
On 15/12/14 19:41, Dylan Baker wrote: Ignore this email. Expect a v2 later today. If you feel extra joyous in cmakeland, you can create a package configuration/version file [1]. It was suggested to me multiple times by the guys in #cmake but never got the courage to do it :) Thanks Emil [1]

Re: [waffle] [PATCH 1/2] waffle: add support for building Waffle using NaCl toolchain

2014-12-15 Thread Emil Velikov
On 15/12/14 12:59, Tapani Pälli wrote: Patch adds changes required to use NaCl compiler and libraries to build Waffle. Build can be configured to use specific version of the NaCl SDK but currently toolchain is fixed to glibc and target architecture hardcoded as 64bit x86. If I understand

  1   2   3   >