Re: [waffle] [PULL] WGL support

2014-11-09 Thread Chad Versace
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 while and I'm certain Piglit doesn't compla

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' will succ

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

2014-11-09 Thread Emil Velikov
Signed-off-by: Emil Velikov --- man/waffle_dl.3.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/waffle_dl.3.xml b/man/waffle_dl.3.xml index b089b93..463081f 100644 --- a/man/waffle_dl.3.xml +++ b/man/waffle_dl.3.xml @@ -74,7 +74,7 @@ libGL.so.1, libGLESv1

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

2014-11-09 Thread Emil Velikov
Under Windows there is a single library that provides the basic/core symbols for OpenGL and OpenGL ES* alike. One should attempt to use the latter only if WGL_EXT_create_context_es{2,}_profile is supported. We check for the extension in waffle_display_supports_context_api() and users are strongly

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

2014-11-09 Thread Emil Velikov
Signed-off-by: Emil Velikov --- 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.xml +++ b/man/waffle_get_p

[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 Reviewed-by: Chad Versace --- src/waffle/wgl/wgl_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/waffle/wgl/wgl_context.c b/src/waffle/wg

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

2014-11-09 Thread Emil Velikov
Signed-off-by: Emil Velikov --- 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 via wine. 3.3 Windows

[waffle] [PATCH 48/53] wflinfo: call get_proc_address after make_current

2014-11-09 Thread Emil Velikov
WGL requires that an active context is available as wglGetProcAddress is called otherwise the function pointer returned will be NULL. v2: Rebase Signed-off-by: Emil Velikov --- src/utils/wflinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/wflinfo.c b/src/

[waffle] [PATCH 08/53] wgl: wire-up waffle_get_proc_address()

2014-11-09 Thread Emil Velikov
For WGL we need a current context otherwise wglGetProcAddress will return NULL pointer. Notice this in the documentation and leave it up-to the user to design/use waffle in such a way this will work. Remove the mesa workaround from gl_basic_test. Suggested by Chad. Cc: Chad Versace Signed-off-by

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

2014-11-09 Thread Emil Velikov
Signed-off-by: Emil Velikov --- 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 tests, installs the project

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

2014-11-09 Thread Emil Velikov
In our current state 'make check/check-func' will succeed, but plain 'make all' will fail. This is due to naming colision when building for Windows, as RUNTIME, LIBRARY and ARCHIVE have different meanings between Windows and everyone else. Essentially the waffle.lib from the shared library will cla

[waffle] [PATCH 46/53] cmake: Set default location for all artifacts to top-level directories

2014-11-09 Thread Emil Velikov
By default, put executables into $CMAKE_BINARY_DIR/bin and libraries into $CMAKE_BINARY_DIR/lib. Test executables still go into $CMAKE_BINARY_DIR/test. This patch's main purpose is to consolidate repetitive code. It doesn't actually move anything except 'libcmocka.a'. v2: [Emil] - Move gl_basic

[waffle] [PULL] WGL support

2014-11-09 Thread Emil Velikov
Hello Chad, As mentioned earlier here is a rebase of all the wgl work so far on top of origin/master. NOTE: The origin/master branch lacks the first patch in the series, yet it is present in origin/next. I would suspect that other patches may be in such state but I haven't checked. What's new:

[waffle] [PATCH 06/53] wgl: implement display management

2014-11-09 Thread Emil Velikov
Unlike GLX and EGL, WGL(Windows) does not have the concept of a display in the sense used in waffle. The 'root primitive' for WGL is a window with it's device context which encapsulates the properties and capabilities of the device doing the actual rendering (CPU or GPU). As such we first need to