[Piglit] [PATCH] GL 3.2: Use standard internalformat when testing FramebufferTexture

2014-03-03 Thread Emil Velikov
GL_RGB32F is available only when texture_buffer_object_rgb32 is supported. As the test covers different topic simply replace the format with one that is supported by both core and compat profile and does not require any extensions. Cc: Jacob Penner jkpenne...@gmail.com Signed-off-by: Emil Velikov

[Piglit] [RESEND][PATCH 1/2] GL 3.2: Use standard internalformat when testing FramebufferTexture

2014-03-04 Thread Emil Velikov
GL_RGB32F is available only when texture_buffer_object_rgb32 is supported. As the test covers different topic simply replace the format with one that is supported by both core and compat profile and does not require any extensions. Cc: Jacob Penner jkpenne...@gmail.com Signed-off-by: Emil Velikov

[Piglit] [PATCH 2/2] arb_clear_buffer_object: use rgb32 format when ARB_texture_buffer_object_rgb32 is available

2014-03-04 Thread Emil Velikov
Cc: Fabian Bieler fabianbie...@fastmail.fm Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/spec/arb_clear_buffer_object/formats.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/tests/spec/arb_clear_buffer_object/formats.c b/tests/spec

Re: [Piglit] [RESEND][PATCH 1/2] GL 3.2: Use standard internalformat when testing FramebufferTexture

2014-03-04 Thread Emil Velikov
On 04/03/14 20:42, Anuj Phogat wrote: On Tue, Mar 4, 2014 at 9:18 AM, Emil Velikov emil.l.veli...@gmail.com wrote: GL_RGB32F is available only when texture_buffer_object_rgb32 is supported. As the test covers different topic simply replace the format with one that is supported by both core

Re: [Piglit] [PATCH] Fix require extension usage -- prepend GL_ and GLX_ in missing places

2014-05-24 Thread Emil Velikov
in arb_clear_buffer_object/formats.c are my fault :'( FWIW Reviewed-by: Emil Velikov emil.l.veli...@gmail.com tests/glx/glx-buffer-age.c | 2 +- tests/glx/glx-copy-sub-buffer.c | 2 +- tests/glx/glx-multithread-makecurrent-1

Re: [Piglit] Core vs compat 3.1 contexts

2014-06-17 Thread Emil Velikov
On 17/06/14 23:50, Ian Romanick wrote: On 06/16/2014 11:29 PM, Ilia Mirkin wrote: All the arb_shader_atomic_counters tests start with config.supports_gl_core_version = 31; However when I try to run them on the NVIDIA proprietary driver, I get: piglit: info: Requested a OpenGL 3.1

[Piglit] Support for waffle WGL and related cleanups

2014-08-12 Thread Emil Velikov
Hello list, The series adds a piglit_wgl_framework based on my Add WGL support to waffle GSoC this summer. A sizeable chunk of the waffle code is not yet upstream, although I would expect that to change soon :P All but patches 04, 10 and 11 should be safe to land even without waffle in place.

[Piglit] [PATCH 04/12] utils: add initial WAFFLE_WGL support

2014-08-12 Thread Emil Velikov
tests, otherwise the test will abort after being displayed for 8 seconds. TODO: - Bump the version requirement, once a WAFFLE_WGL is released. - Update the instructions in the README. - Add input handling (event_loop). Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- CMakeLists.txt

[Piglit] [PATCH 02/12] cmake: include piglit_wl/gbm_framework only when needed

2014-08-12 Thread Emil Velikov
One does not need to build either one if the target does not have/support them. The upcoming waffle WGL support is a nice example. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/util/CMakeLists.txt | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git

[Piglit] [PATCH 06/12] c99: resolve MSVC 2013 builds

2014-08-12 Thread Emil Velikov
. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- include/msvc/c99/stdbool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/msvc/c99/stdbool.h b/include/msvc/c99/stdbool.h index dd55255..089f8d4 100644 --- a/include/msvc/c99/stdbool.h +++ b/include/msvc/c99

[Piglit] [PATCH 01/12] cmake: don't use open_s with mingw

2014-08-12 Thread Emil Velikov
The function is part of the secapi, which is not available under WinXP. Building piglit with it will result in broken tests. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 36b06fc

[Piglit] [PATCH 05/12] cmake: cleanup PIGLIT_USE_WAFFLE builds

2014-08-12 Thread Emil Velikov
- Mandating pkg-check when building with MSVC is silly. - Do not mess around with CMAKE_C*_FLAGS directly but use include_directories to handle waffle's headers location. - Use WAFFLE_LIBRARIES over WAFFLE_LDFLAGS for linking purposes. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com

[Piglit] [PATCH 08/12] util/piglit-vbo: do not use 'and' in a conditional statement

2014-08-12 Thread Emil Velikov
I'm not entirely sure how piglit build with gcc as is, yet VC compiler seems very unhappy about this. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/util/piglit-vbo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/piglit-vbo.cpp b/tests/util

[Piglit] [PATCH 11/12] util/dispatch: move to waffle or not to waffle decision in the caller

2014-08-12 Thread Emil Velikov
piglit-dispatch.c is about to get hairy even without this hunk. Also moving the code in piglit-dispatch-init.c will allow us to have a clear visual as we start removing the non-waffle (glut) support. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/util/piglit-dispatch-init.c | 85

[Piglit] [PATCH 03/12] util/winsys: ifdef WAFFLE_PLATFORM_WAYLAND

2014-08-12 Thread Emil Velikov
Avoid building the code for platforms that lack wayland. The note is still valid as it is based on the lack of input handling (event_loop) when building with wayland in mind. To avoid issues as that changes just wrap it up now, similar to every other platform. Signed-off-by: Emil Velikov

[Piglit] [PATCH 09/12] util: remove duplicate declaration of piglit_display()

2014-08-12 Thread Emil Velikov
Already declared in tests/util/piglit-framework-gl.h. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/util/sized-internalformats.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/util/sized-internalformats.h b/tests/util/sized-internalformats.h index 9529d7c..e595b07

[Piglit] [PATCH 12/12] utils/wfl: use correct destroy order in special_case_gl31()

2014-08-12 Thread Emil Velikov
it at window_destroy will trigger an assert. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/util/piglit-framework-gl/piglit_wfl_framework.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/util/piglit-framework-gl/piglit_wfl_framework.c b/tests/util/piglit

[Piglit] [PATCH 10/12] HACK: cmake: link in waffle's third_party static libraries

2014-08-12 Thread Emil Velikov
For some bizzare reason the MSVC build fails with unresolved symbols without these two set in. I'm suspecting that something fishy is happening with waffle and/or cmake + MSVC. Until we have that one resolved, this helps us get through with the build. Signed-off-by: Emil Velikov emil.l.veli

[Piglit] [PATCH 07/12] util/framework: don't include POSIX headers when building for windows

2014-08-12 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/util/piglit-framework-gl/piglit_winsys_framework.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/util/piglit-framework-gl/piglit_winsys_framework.c b/tests/util/piglit-framework-gl/piglit_winsys_framework.c index

[Piglit] [PATCHv2 09/12] util: remove duplicate declarations of piglit_{init, display}

2014-08-12 Thread Emil Velikov
Already declared in tests/util/piglit-framework-gl.h. v2: Also remove piglit_init(). Spotted by Ilia. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- Thanks Ilia. I was casing rather nasty bug and did not notice piglit_init(). -Emil tests/util/sized-internalformats.h | 6 -- 1

Re: [Piglit] [PATCH 08/12] util/piglit-vbo: do not use 'and' in a conditional statement

2014-08-12 Thread Emil Velikov
On 12/08/14 17:30, Ilia Mirkin wrote: On Tue, Aug 12, 2014 at 1:18 PM, Emil Velikov emil.l.veli...@gmail.com wrote: I'm not entirely sure how piglit build with gcc as is, yet VC compiler seems very unhappy about this. http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf See 7.9

Re: [Piglit] [PATCH 08/12] util/piglit-vbo: do not use 'and' in a conditional statement

2014-08-12 Thread Emil Velikov
On 12/08/14 22:21, Ilia Mirkin wrote: On Tue, Aug 12, 2014 at 5:19 PM, Ilia Mirkin imir...@alum.mit.edu wrote: On Tue, Aug 12, 2014 at 5:18 PM, Emil Velikov emil.l.veli...@gmail.com wrote: On 12/08/14 17:30, Ilia Mirkin wrote: On Tue, Aug 12, 2014 at 1:18 PM, Emil Velikov emil.l.veli

[Piglit] [BUG] Status line being printed multiple times

2014-08-12 Thread Emil Velikov
Hello list, Recently I've been trying out piglit under Windows, and by default the cmd window is 80 columns in width. As such as soon as the status line becomes larger than 80 characters, a separate new line is printed for each test iteration. AFAICS the issue exist under Linux as well, yet the

Re: [Piglit] [BUG] Status line being printed multiple times

2014-08-13 Thread Emil Velikov
On 12/08/14 23:10, Dylan Baker wrote: On Tuesday, August 12, 2014 11:01:34 PM Emil Velikov wrote: Hello list, Recently I've been trying out piglit under Windows, and by default the cmd window is 80 columns in width. As such as soon as the status line becomes larger than 80 characters

Re: [Piglit] [BUG] Status line being printed multiple times

2014-08-13 Thread Emil Velikov
On 13/08/14 21:59, Dylan Baker wrote: On Wednesday, August 13, 2014 02:16:23 PM Emil Velikov wrote: On 12/08/14 23:10, Dylan Baker wrote: On Tuesday, August 12, 2014 11:01:34 PM Emil Velikov wrote: Hello list, Recently I've been trying out piglit under Windows, and by default the cmd

Re: [Piglit] [PATCH] nv_conditional_render: reinstate width/height for mipmap generation

2014-08-17 Thread Emil Velikov
On 17/08/14 19:03, Ilia Mirkin wrote: The test relies on level 1 being used from the texture when rendering to the window. AFAICS Brian's recent set minimum windows dimentions to AxB was inspired by a Windows feature - if a window has a titlebar (and/or assositated buttons) it's minimum size

Re: [Piglit] Support for waffle WGL and related cleanups

2014-08-18 Thread Emil Velikov
On 13/08/14 14:08, Brian Paul wrote: On 08/12/2014 11:18 AM, Emil Velikov wrote: Hello list, The series adds a piglit_wgl_framework based on my Add WGL support to waffle GSoC this summer. A sizeable chunk of the waffle code is not yet upstream, although I would expect that to change soon :P

Re: [Piglit] [PATCH 05/12] cmake: cleanup PIGLIT_USE_WAFFLE builds

2014-08-18 Thread Emil Velikov
On 18/08/14 15:22, Jose Fonseca wrote: On 12/08/14 18:18, Emil Velikov wrote: [...] - Use WAFFLE_LIBRARIES over WAFFLE_LDFLAGS for linking purposes. [...] Emil, This particular change is causing the build to fail when libwaffle-1.so is not on a standard library directory (ie., outside

[Piglit] [BUG]Symbols are not replaced correctly when generating the test's URL

2014-09-02 Thread Emil Velikov
Hello list, When generating HTML summary of the results some symbols are not escaped correctly, thus the links created for the related tests are invalid. See the following examples glsl1-Preprocessor test 11 (#elif) glean/glsl1-Preprocessor%20test%2011%20(#elif).html glsl1-Preprocessor test 15

Re: [Piglit] [PATCH] html: escape '#' in addition to other charcters

2014-09-03 Thread Emil Velikov
On 03/09/14 07:14, Dylan Baker wrote: CC: Emil Velikov emil.l.veli...@gmail.com Signed-off-by: Dylan Baker dylanx.c.ba...@intel.com Works like a charm, thank you :) Tested-by: Emil Velikov emil.l.veli...@gmail.com --- framework/summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [Piglit] [PATCH] test_result.mako: Fix bug introduced by d9f87269c28c

2014-09-03 Thread Emil Velikov
changed a few of the names to shorter versions, including environment to env. The template was updated incorrectly in the template, and environment has not been printed since The template was updated incorrectly in the template? sigh I'll fix that Reported-and-tested-by: Emil Velikov

Re: [Piglit] [PATCH 1/2] ext_timer_query: add Windows support in time-elapsed.c

2014-09-04 Thread Emil Velikov
Hi Brian, Wouldn't it be better if we add a couple of wrapper functions: piglit_get_time and piglit_sleep ? This way we'll be able to keep the tests clean and OS-agnostic and avoid the trivial duplication introduced with the second patch :) Cheers, Emil On 04/09/14 20:34, Brian Paul wrote:

Re: [Piglit] [PATCH 1/2] ext_timer_query: add Windows support in time-elapsed.c

2014-09-04 Thread Emil Velikov
On 04/09/14 21:56, Brian Paul wrote: On 09/04/2014 02:25 PM, Emil Velikov wrote: Hi Brian, Wouldn't it be better if we add a couple of wrapper functions: piglit_get_time and piglit_sleep ? This way we'll be able to keep the tests clean and OS-agnostic and avoid the trivial duplication

Re: [Piglit] [PATCH] summary.py: Replace path separators in testrun names

2014-09-04 Thread Emil Velikov
On 04/09/14 21:54, Dylan Baker wrote: This solves the bug of running piglit run -n 'wip/foo' which causes a number of issues in the html summary generation. From a quick look it seems that it might help with a funny issue that I'm seeing: Whenever piglit is ran on Windows the testname uses

Re: [Piglit] Interest in participating in the OPW with X.org

2014-09-25 Thread Emil Velikov
On 25/09/14 15:34, Brian Paul wrote: On 09/25/2014 02:32 AM, Juliet Fru wrote: Hello Brian, There's definitely work that can be done for Piglit. For example, porting the old Glean tests to piglit's framework. I am currently downloading the code and would build immediately it is

[Piglit] [PATCH] cmake: bump cmake requirement to 2.8.11

2014-09-26 Thread Emil Velikov
Latest waffle (1.4.0) requires cmake 2.8.11 and considering that waffle and piglit are build hand-in-hand, do the same here. Suggested-by: Chad Versace chad.vers...@linux.intel.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- I'm not entirely sure how many people build waffle

[Piglit] [RFC] Piglit tags/releases

2014-09-29 Thread Emil Velikov
Hello all, As you already know I've been doing mesa releases for a bit now, and one of the things that I found inspiring is the lack of piglit releases. Take the following I've tested Mesa X and there are no regression... well there are but that's because I unintentionally updated piglit to

Re: [Piglit] [PATCH] cmake: bump cmake requirement to 2.8.11

2014-09-29 Thread Emil Velikov
add that Gentoo has 2.8.12 as stable, and 3.0.2 as unstable On Friday, September 26, 2014 11:50:53 AM Emil Velikov wrote: Latest waffle (1.4.0) requires cmake 2.8.11 and considering that waffle and piglit are build hand-in-hand, do the same here. Suggested-by: Chad Versace chad.vers

Re: [Piglit] [PATCH] cmake: bump cmake requirement to 2.8.11

2014-09-29 Thread Emil Velikov
add that Gentoo has 2.8.12 as stable, and 3.0.2 as unstable On Friday, September 26, 2014 11:50:53 AM Emil Velikov wrote: Latest waffle (1.4.0) requires cmake 2.8.11 and considering that waffle and piglit are build hand-in-hand, do the same here. Suggested-by: Chad Versace chad.vers

Re: [Piglit] [RFC] Piglit tags/releases

2014-09-30 Thread Emil Velikov
So in a nutshell what I've gathered so far: * Concerns that it will take too much effort. Dare I say it - it will not. A single build + sanity run takes a few minutes. * There is no point if tagging/shipping (distro or otherwise) piglit for people that do not know/have the time/etc to build

[Piglit] [PATCH] utils: cleanup winsys on test exit

2014-09-30 Thread Emil Velikov
Reported-by: Ilia Mirkin imir...@alum.mit.edu Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- Untested, but if my understanding is correct, it should handle most cases. -Emil tests/util/piglit-framework-gl/piglit_winsys_framework.c | 1 + 1 file changed, 1 insertion(+) diff --git

[Piglit] [PATCH] util/wfl: unbound the current context before destroying its window

2014-10-01 Thread Emil Velikov
Otherwise we end up leaking the drawable. Spotted by Valgrind Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- Perhaps we can simplify the call chain for the following a bit make_current make_current_singlepass special_case31 make_curren_singlepass... But that for another day :P

Re: [Piglit] [PATCH] util/wfl: unbound the current context before destroying its window

2014-10-02 Thread Emil Velikov
On 02/10/14 06:21, Dylan Baker wrote: Should the subject say 'unbind' rather than 'unbound'? Indeed it should. I had the feeling that it does not sounds quite right, thanks for spotting :) Planning to get this an the other leakfix (incl. Ilia's t-b, and the typo/grammar fixed) over the weekend

Re: [Piglit] [PATCH] util/wfl: unbound the current context before destroying its window

2014-10-02 Thread Emil Velikov
On 02/10/14 06:21, Dylan Baker wrote: Should the subject say 'unbind' rather than 'unbound'? Indeed it should. I had the feeling that it does not sounds quite right, thanks for spotting :) Planning to get this an the other leakfix (incl. Ilia's t-b, and the typo/grammar fixed) over the weekend

Re: [Piglit] [RFC] Piglit tags/releases

2014-10-02 Thread Emil Velikov
On 02/10/14 21:44, Ian Romanick wrote: On 09/30/2014 09:55 AM, Emil Velikov wrote: On 30/09/14 16:18, Ian Romanick wrote: On 09/29/2014 10:01 AM, Matt Turner wrote: On Mon, Sep 29, 2014 at 9:34 AM, Emil Velikov emil.l.veli...@gmail.com wrote: While I've been through the RELEASES document I

Re: [Piglit] [RFC] Piglit tags/releases

2014-10-02 Thread Emil Velikov
On 02/10/14 21:46, Ian Romanick wrote: On 09/30/2014 10:05 AM, Emil Velikov wrote: So in a nutshell what I've gathered so far: * Concerns that it will take too much effort. Dare I say it - it will not. A single build + sanity run takes a few minutes. * There is no point if tagging

[Piglit] Malformed(?) output in piglit's html info page

2014-10-22 Thread Emil Velikov
Hello all, Have anyone noticed an interesting new feature in the html info page of the respective piglit run. It seems that now uname, lspci and glxinfo are merged with the options. I would assume that this is not intentional, but a pair of parents may be missing somewhere ? Thanks, Emil

Re: [Piglit] Add platform based test skipping to python

2014-10-24 Thread Emil Velikov
Hi Dylan, On 04/10/14 01:57, Dylan Baker wrote: We have recently started using jenkins here at Intel to do regression testing across multiple generations of hardware. Because of this we have become concerned with the large number of tests that fail and the large number of tests that skip,

Re: [Piglit] [PATCH] log.py: Fix overwriting of final summary

2014-10-30 Thread Emil Velikov
corrects that problem, making the final output look much nicer. Nice one Dylan, I've spotted this one but did not really bother with reporting it :P Tested-by: Emil Velikov emil.l.veli...@gmail.com Signed-off-by: Dylan Baker dylanx.c.ba...@intel.com

Re: [Piglit] [Patch v2 5/5] json_.py: Bump results version to 2

2014-10-30 Thread Emil Velikov
On 30 October 2014 21:27, Dylan Baker baker.dyla...@gmail.com wrote: This corrects in a permanent and automatic way the changes in the results that were fixed in the previous patch. v2: - add this patch Signed-off-by: Dylan Baker dylanx.c.ba...@intel.com --- Emil, this should solve the

Re: [Piglit] [Patch v3 5/5] json_.py: Bump results version to 2

2014-10-30 Thread Emil Velikov
like a charm. Thanks. Tested-by: Emil Velikov emil.l.veli...@gmail.com Signed-off-by: Dylan Baker dylanx.c.ba...@intel.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 6/7] tests/util: Define snprintf as _snprintf on MSVC.

2014-11-07 Thread Emil Velikov
On 07/11/14 14:21, jfons...@vmware.com wrote: From: José Fonseca jfons...@vmware.com As the semantics of sprintf_s's arguments are quite different, so code that relies on it might misbehave. Indeed sprintf_s has an additional argument (buffer_length) which might cause a bit of an issue. On a

Re: [Piglit] [PATCH 1/7] cmake: Require Visual Studio 2013.

2014-11-07 Thread Emil Velikov
Tools-VS2012 x86 Native Tools Command Prompt Have a strange feeling that the menu says VS2013 x86... Either way the series looks good. FWIW Reviewed-by: Emil Velikov emil.l.veli...@gmail.com Cheers, Emil ___ Piglit mailing list Piglit

Re: [Piglit] [PATCH 7/7] cmake: Warn when variable length arrays are used.

2014-11-07 Thread Emil Velikov
On 07/11/14 14:21, jfons...@vmware.com wrote: From: José Fonseca jfons...@vmware.com As these are not supported on MSVC, not even MSVC 2013 since it only has library support for C99, it doesn't actually support C99 syntax. I do recall that msvc2013 just errors out in such cases, yet I've

Re: [Piglit] [PATCH 1/2] glx-close-display: Fix GLX_DOUBLEBUFFER attrib.

2014-11-14 Thread Emil Velikov
On 14/11/14 14:57, jfons...@vmware.com wrote: From: José Fonseca jfons...@vmware.com https://www.opengl.org/sdk/docs/man2/xhtml/glXChooseFBConfig.xml states that GLX_DOUBLEBUFFER Must be followed by True or False. No idea how this ever passed given the buffer overflow that ensued.

Re: [Piglit] [PATCH 5/6] ARB_pipeline_statistics_query (geom): basic test

2014-11-18 Thread Emil Velikov
On 18/11/14 15:14, Brian Paul wrote: On 11/17/2014 05:00 PM, Ben Widawsky wrote: Signed-off-by: Ben Widawsky b...@bwidawsk.net [snip] +static struct query queries[] = { +{ + .query = GL_GEOMETRY_SHADER_INVOCATIONS, + .name = GL_GEOMETRY_SHADER_INVOCATIONS, + .expected =

Re: [Piglit] [PATCH 5/6] ARB_pipeline_statistics_query (geom): basic test

2014-11-18 Thread Emil Velikov
On 18/11/14 18:25, Jose Fonseca wrote: You're sure? I thought that MSVC 2013 only had _library_ support for C99, but I confess I haven't tested.. Note that I've mentioned named/designated initialisers rather than the whole C99. And yes building executables with named initializers works.

[Piglit] [PATCH 2/4] utils/glx: remove empty/unused function piglit_framework_fbo_init_glx

2014-11-21 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/util/piglit-glx-util.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/tests/util/piglit-glx-util.c b/tests/util/piglit-glx-util.c index 5e3152f..3042dc8 100644 --- a/tests/util/piglit-glx-util.c +++ b/tests/util/piglit-glx

[Piglit] The infamous Waffle WGL support

2014-11-21 Thread Emil Velikov
Hello list, This is my (hopefully) final submission on the topic of converting piglit to use Waffle WGL. With some cleanups (input handling?) to follow some time later. Since the original submission we have dropped the Waffle changes which break the API, and WGL support is now in waffle/master

[Piglit] [PATCH 1/4] util: fix comment typo

2014-11-21 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/util/piglit-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/piglit-util.h b/tests/util/piglit-util.h index 84e2066..9731c1c 100755 --- a/tests/util/piglit-util.h +++ b/tests/util/piglit-util.h

[Piglit] [PATCH 4/4] util/dispatch: move to waffle or not to waffle decision in the caller

2014-11-21 Thread Emil Velikov
piglit-dispatch.c is about to get hairy even without this hunk. Also moving the code in piglit-dispatch-init.c will allow us to have a clear visual as we start removing the non-waffle (glut) support. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com Reviewed-by: Brian Paul bri...@vmware.com

[Piglit] [RFC PATCH] summary.py: escape \ from Windows results when creating folders on Linux

2014-11-21 Thread Emil Velikov
result file. Cc: Dylan Baker dylanx.c.ba...@intel.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- framework/summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/summary.py b/framework/summary.py index f4fd80d..6dc2b07 100644 --- a/framework/summary.py

[Piglit] [PATCH] summary.py: escape \ from Windows results when creating folders on Linux

2014-11-22 Thread Emil Velikov
result file. v2: Attempt to handle Linux results on Windows. Cc: Dylan Baker dylanx.c.ba...@intel.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- framework/summary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/summary.py b/framework/summary.py index

[Piglit] [RFC PATCH 2/2] cmake: build the util libraries as shared under Windows

2014-11-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- cmake/piglit_util.cmake | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cmake/piglit_util.cmake b/cmake/piglit_util.cmake index 411fa54..48e89c1 100644 --- a/cmake/piglit_util.cmake +++ b/cmake/piglit_util.cmake

[Piglit] [PATCH 1/2] util/gl: link against OPENGL_gl_LIBRARY on waffle-less systems

2014-11-22 Thread Emil Velikov
explicitly pulls libGL, thus glXGetProcAddress{,ARB} ends up resolved. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/util/CMakeLists.txt | 4 1 file changed, 4 insertions(+) diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt index 98eedd0..a6ae6dd 100644 --- a/tests

[Piglit] [PATCH 00/12] Move all the misc platform 'hacks' to util

2014-11-22 Thread Emil Velikov
Hi all, Feeling inspired by Jose's recent work I decided to do a bit of cleanup :) The series aims to: - Nuke/move the remaining ifdef _WIN32 _MSC_VER hacks into tests/util. - Improve piglit_getmicroseconds (add fallback for CLOCK_MONOTONIC) - Convert {arb,ext}_timer_query to use it. On

[Piglit] [PATCH 06/12] util: add non-monotonic/windows version of piglit_time_get_nano

2014-11-22 Thread Emil Velikov
Fallback to gettimeofday, if clock_gettime supports monotonic yet fails to get the time. v2: Fix gettimeofday fallback. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/util/piglit-util.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git

[Piglit] [PATCH 04/12] util: add piglit_time_is_monotonic helper

2014-11-22 Thread Emil Velikov
Rather than assuming that piglit_get_microseconds() returns -1 when there is no monotonic timer, add explicit function to check. Use it where needed, and break the above assumption. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/spec/glx_oml_sync_control/timing.c | 2 +- tests

[Piglit] [PATCH 10/12] util: move string wrapper no piglit-util.h

2014-11-22 Thread Emil Velikov
Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/shaders/shader_runner.c | 27 --- tests/util/piglit-util.h | 27 +++ 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/tests/shaders/shader_runner.c b/tests/shaders

[Piglit] [PATCH 08/12] ext_timer_query: use piglit_time_get_nano

2014-11-22 Thread Emil Velikov
The above uses clock_gettime(CLOCK_MONOTONIC) (when available) rather than gettimeofday(). The former has greather precision and could help with the inconsintent results that people are getting. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/spec/ext_timer_query/time-elapsed.c

[Piglit] [PATCH 11/12] utils: provide static inline strchrnul/strndup

2014-11-22 Thread Emil Velikov
Typecast malloc() return value, of the CPP compiler will hate us. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/util/piglit-util.c | 27 --- tests/util/piglit-util.h | 36 2 files changed, 28 insertions(+), 35

Re: [Piglit] [PATCH 3/4] utils: add initial WAFFLE_WGL support

2014-11-23 Thread Emil Velikov
On 23/11/14 09:38, Jose Fonseca wrote: On 21/11/14 19:52, Emil Velikov wrote: [snip] --- /dev/null +++ b/tests/util/piglit-framework-gl/piglit_wgl_framework.c [snip] +static void +enter_event_loop(struct piglit_winsys_framework *winsys_fw) +{ + +/* FINISHME: Write event loop

Re: [Piglit] [PATCH] summary.py: escape \ from Windows results when creating folders on Linux

2014-11-23 Thread Emil Velikov
On 23/11/14 09:46, Jose Fonseca wrote: On 22/11/14 19:36, Emil Velikov wrote: Seemingly this is sufficient for a Windows piglit run/result file to be ran under Linux and the correct directory structure (and html) to be generated. Unfortunately my python-fu is a bit short so I'm not sure

Re: [Piglit] [RFC PATCH 2/2] cmake: build the util libraries as shared under Windows

2014-11-23 Thread Emil Velikov
On 23/11/14 11:18, Jose Fonseca wrote: On 22/11/14 22:26, Emil Velikov wrote: Rather than rebuilding every single test as we change the util libraries and increase the size of each test by ~9MiB (as noticed in the mingw-w64 build), just revert to shared piglitutil* libs. This is great. I

Re: [Piglit] [PATCH] summary.py: escape \ from Windows results when creating folders on Linux

2014-11-23 Thread Emil Velikov
Afaict in some cases we don't use posixpath, as key ends up with a mix of both \ and /. Any ideas what/where to look to fix this properly ? -Emil On 23/11/14 17:54, Dylan Baker wrote: Isn't this why we were using posixpath explicitly? On Nov 23, 2014 7:15 AM, Emil Velikov emil.l.veli

Re: [Piglit] [RFC PATCH 2/2] cmake: build the util libraries as shared under Windows

2014-11-23 Thread Emil Velikov
On 23/11/14 20:14, Jose Fonseca wrote: On 23/11/14 18:11, Emil Velikov wrote: On 23/11/14 11:18, Jose Fonseca wrote: On 22/11/14 22:26, Emil Velikov wrote: Rather than rebuilding every single test as we change the util libraries and increase the size of each test by ~9MiB (as noticed

[Piglit] [PATCH] util/gl: link against OPENGL_gl_LIBRARY on waffle aware systems

2014-11-24 Thread Emil Velikov
Similar to the earlier patch for waffle-less (glut) builds. The need for this patch became apparent as we removed the libGL link dependency in waffle. Cc: Mark Janes mark.a.ja...@intel.com Reported-by: Mark Janes mark.a.ja...@intel.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com

[Piglit] [PATCH] util/gl: link against OPENGL_gl_LIBRARY on waffle aware systems

2014-11-24 Thread Emil Velikov
Similar to the earlier patch for waffle-less (glut) builds. The need for this patch became apparent as we removed the libGL link dependency in waffle. Cc: Mark Janes mark.a.ja...@intel.com Reported-by: Mark Janes mark.a.ja...@intel.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com

Re: [Piglit] [PATCH] util/gl: link against OPENGL_gl_LIBRARY on waffle aware systems

2014-11-26 Thread Emil Velikov
On 25/11/14 18:45, Mark Janes wrote: This patched fixed the gl tests, but I encountered the same error for gles1/gles2/gles3. Piglit built for me when I added the same link instruction to: tests/util/CMakeLists.gles1.txt tests/util/CMakeLists.gles2.txt tests/util/CMakeLists.gles3.txt

[Piglit] [PATCH v2] util/gl: link against OPENGL_gl_LIBRARY on waffle aware systems

2014-11-26 Thread Emil Velikov
Similar to the earlier patch for waffle-less (glut) builds. The need for this patch became apparent as we removed the libGL link dependency in waffle. v2: Try to handle both gl and gles*. Cc: Mark Janes mark.a.ja...@intel.com Reported-by: Mark Janes mark.a.ja...@intel.com Signed-off-by: Emil

Re: [Piglit] [PATCH] util/gl: link against OPENGL_gl_LIBRARY on waffle aware systems

2014-12-03 Thread Emil Velikov
On 01/12/14 18:17, Chad Versace wrote: On 12/01/2014 09:41 AM, Chad Versace wrote: On 11/26/2014 01:11 AM, Emil Velikov wrote: Things are not as black and white as you might think. Most of piglit uses what I call target-less rules, which means that when one does add_definitions

Re: [Piglit] [PATCH v2] util/gl: link against OPENGL_gl_LIBRARY on waffle aware systems

2014-12-03 Thread Emil Velikov
On 01/12/14 18:17, Chad Versace wrote: On 11/26/2014 01:11 AM, Emil Velikov wrote: Similar to the earlier patch for waffle-less (glut) builds. The need for this patch became apparent as we removed the libGL link dependency in waffle. v2: Try to handle both gl and gles*. Cc: Mark Janes

[Piglit] [PATCH] ext_timer_query: the timestamp test does not require the EXT extension

2014-12-03 Thread Emil Velikov
The test itself is written against the ARB extension, and neither the test or the ARB extension requires the EXT one. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- It's unlikely that anyone will hit this (i.e. has support for ARB but lacks the EXT extension) but from a quick look

[Piglit] [PATCH] getteximage-luminance: remove obsolete piglit_dispatch_default_init() call

2014-12-03 Thread Emil Velikov
By the time piglit_init() is executed, the context is creates and the dispatch table has been initialised. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- tests/texturing/getteximage-luminance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/texturing

Re: [Piglit] [PATCH] ext_timer_query: the timestamp test does not require the EXT extension

2014-12-03 Thread Emil Velikov
On 03/12/14 14:44, Brian Paul wrote: On 12/03/2014 06:37 AM, Emil Velikov wrote: The test itself is written against the ARB extension, and neither the test or the ARB extension requires the EXT one. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- It's unlikely that anyone will hit

Re: [Piglit] [PATCH 2/3] util: Disable overflow in floating-point constant arithmetic in strtod_inf.

2014-12-03 Thread Emil Velikov
On 03/12/14 15:37, Jose Fonseca wrote: From: José Fonseca jfons...@vmware.com Now that this is an inline function, the warning appears all over the place. --- tests/util/piglit-util.h | 5 + 1 file changed, 5 insertions(+) diff --git a/tests/util/piglit-util.h

Re: [Piglit] [PATCH 1/3] util: far/near macros must be undefined on all Windows builds.

2014-12-03 Thread Emil Velikov
Thanks for the quick fixes José. Apart from a nitpick in patch 2 the series looks good. -Emil On 03/12/14 15:37, Jose Fonseca wrote: From: José Fonseca jfons...@vmware.com And not just MSVC. Fixes build with MinGW. --- tests/util/piglit-util.h | 10 ++ 1 file changed, 6

Re: [Piglit] [PATCH 2/3] util: Disable overflow in floating-point constant arithmetic in strtod_inf.

2014-12-03 Thread Emil Velikov
On 03/12/14 22:21, Jose Fonseca wrote: On 03/12/14 22:19, Emil Velikov wrote: On 03/12/14 15:37, Jose Fonseca wrote: From: José Fonseca jfons...@vmware.com Now that this is an inline function, the warning appears all over the place. --- tests/util/piglit-util.h | 5 + 1 file

Re: [Piglit] [PATCH 3/4] utils: add initial WAFFLE_WGL support

2014-12-14 Thread Emil Velikov
On 12/12/14 15:00, Jose Fonseca wrote: On 23/11/14 15:09, Emil Velikov wrote: On 23/11/14 09:38, Jose Fonseca wrote: On 21/11/14 19:52, Emil Velikov wrote: [snip] --- /dev/null +++ b/tests/util/piglit-framework-gl/piglit_wgl_framework.c [snip] +static void +enter_event_loop(struct

Re: [Piglit] [PATCH v2 3/5] arb_timer_query: Add missing header

2014-12-14 Thread Emil Velikov
On 12/12/14 17:47, Jan Vesely wrote: v2: protect the include with guards Signed-off-by: Jan Vesely jan.ves...@rutgers.edu --- tests/spec/arb_timer_query/timestamp-get.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/spec/arb_timer_query/timestamp-get.c

Re: [Piglit] [PATCH 1/4] framework: Use WGL by default on Windows.

2014-12-15 Thread Emil Velikov
On 15/12/14 12:19, Jose Fonseca wrote: From: José Fonseca jfons...@vmware.com Like done with GLX on Linux. Yes please. With or without pimping out the error message, this is Reviewed-by: Emil Velikov emil.l.veli...@gmail.com ___ Piglit mailing list

Re: [Piglit] [Patch v2 3/3] CMakeLists.txt: Use FindWaffle.cmake instead of pkg-find

2014-12-15 Thread Emil Velikov
On 15/12/14 18:56, Dylan Baker wrote: This is nice because it should work on both windows and on linux, since FindWaffle is provided by waffle itself. This is tested on Linux, but not on Windows. NOTE: There is a bug in FindWaffle.cmake that causes it to never check that the requested

Re: [Piglit] [PATCH 2/4] cmake: Don't rely on pkg-config for all Windows builds.

2014-12-15 Thread Emil Velikov
On 15/12/14 12:19, Jose Fonseca wrote: From: José Fonseca jfons...@vmware.com Instead of just MSVC builds. Because pkg-config is not commonly available when compiling natively on Windows, and gives the wrong results (the host package instead of target package) when cross-compiling to

Re: [Piglit] [PATCH 2/4] cmake: Don't rely on pkg-config for all Windows builds.

2014-12-15 Thread Emil Velikov
On 15/12/14 20:09, Jose Fonseca wrote: On 15/12/14 19:47, Emil Velikov wrote: On 15/12/14 12:19, Jose Fonseca wrote: From: José Fonseca jfons...@vmware.com Instead of just MSVC builds. Because pkg-config is not commonly available when compiling natively on Windows, and gives the wrong

Re: [Piglit] [PATCH 3/4] utils: add initial WAFFLE_WGL support

2014-12-15 Thread Emil Velikov
On 15/12/14 20:56, Jason Ekstrand wrote: On Fri, Nov 21, 2014 at 11:52 AM, Emil Velikov emil.l.veli...@gmail.com mailto:emil.l.veli...@gmail.com wrote: This will allow us to use waffle with its upcoming WGL support for Windows. With that done, the final step to removing glut

Re: [Piglit] [PATCH 3/4] utils: add initial WAFFLE_WGL support

2014-12-15 Thread Emil Velikov
On 15 December 2014 at 23:24, Dave Airlie airl...@gmail.com wrote: On 16 December 2014 at 07:57, Emil Velikov emil.l.veli...@gmail.com wrote: On 15/12/14 20:56, Jason Ekstrand wrote: On Fri, Nov 21, 2014 at 11:52 AM, Emil Velikov emil.l.veli...@gmail.com mailto:emil.l.veli...@gmail.com wrote

Re: [Piglit] [PATCH 2/4] cmake: Don't rely on pkg-config for all Windows builds.

2014-12-21 Thread Emil Velikov
On 16 December 2014 at 11:27, Jose Fonseca jfons...@vmware.com wrote: On 15/12/14 19:47, Emil Velikov wrote: On 15/12/14 12:19, Jose Fonseca wrote: From: José Fonseca jfons...@vmware.com Instead of just MSVC builds. Because pkg-config is not commonly available when compiling natively

Re: [Piglit] [PATCH 3/3] cmake, gles: Remove target from the lib list

2014-12-21 Thread Emil Velikov
On 16 December 2014 at 23:27, Jan Vesely jan.ves...@rutgers.edu wrote: On Sun, 2014-12-14 at 16:16 +, Emil Velikov wrote: On 12/12/14 19:33, Jan Vesely wrote: Fixes Target links to itself cmake warnings Signed-off-by: Jan Vesely jan.ves...@rutgers.edu --- Hmm those seems exist

Re: [Piglit] Running piglit in chroot

2015-02-17 Thread Emil Velikov
Hi Matěj, On 17 February 2015 at 00:05, Matěj Cepl mc...@cepl.eu wrote: Hi, after complete failure of building on older Linux distribution (specifically RHEL-6 ... it is just not possible to patch out all development which increase the dependency requirements enough) I have decided to try

Re: [Piglit] [PATCH 2/3] Use alloca instead of variable length arrays

2015-02-12 Thread Emil Velikov
On 11 February 2015 at 16:12, Jan Vesely jan.ves...@rutgers.edu wrote: On Tue, 2015-02-10 at 10:28 -0800, Dylan Baker wrote: I just want to be clear I was asking a question, I don't really care one way or another, I would just rather not see code churn if it doesn't actually buy us anything.

  1   2   3   >