Re: [Piglit] [PATCH] Accelerate running a bit more (for both piglit-print-commands.py and piglit-run.py:

2012-05-11 Thread Kenneth Graunke
On 05/11/2012 02:04 AM, Shuang He wrote: Before: time ./piglit-print-commands.py -t 'asmparsertest/ARBfp1.0/size_specifier-31.txt' -x 'asmparsertest/ARBfp1.0/size_specifier-31.txt'.+ -x valgrind/ tests/all.tests asmparsertest/ARBfp1.0/size_specifier-31.txt :::

Re: [Piglit] [RFC] make: Make util libraries shared in non-windows systems

2012-06-05 Thread Kenneth Graunke
On 06/04/2012 01:54 PM, Kenneth Graunke wrote: On 06/04/2012 11:37 AM, Pauli Nieminen wrote: On Sat, Jun 02, 2012 at 12:56:49PM -0700, Kenneth Graunke wrote: Pauli, do you plan on pushing this, or should I? It probably takes some time until I arrange my ssh keys for git.freedesktop.org

Re: [Piglit] [PATCH 03/14] util: Remove custom defs of C99 types for MSVC

2012-06-12 Thread Kenneth Graunke
On 06/12/2012 04:02 PM, Chad Versace wrote: piglit-util.h contained an #ifdef that defined C99 types for MSVC. Remove that #ifdef block and let MSVC simply include the C99 headers located at $PIGLIT_TOP/include/msvc/c99. Signed-off-by: Chad Versace chad.vers...@linux.intel.com ---

Re: [Piglit] [PATCH] fs-textureGrad-miplevels: A test for textureGrad based on fs-textureLod-miplevels.

2012-07-12 Thread Kenneth Graunke
On 07/11/2012 04:00 AM, jfons...@vmware.com wrote: From: José Fonseca jfons...@vmware.com Verified on NVIDIA. Looks good to me! Thanks José. Reviewed-by: Kenneth Graunke kenn...@whitecape.org ___ Piglit mailing list Piglit@lists.freedesktop.org

Re: [Piglit] [PATCH 2/2] framework: When a test catches a spurious window resize, re-run it.

2012-07-25 Thread Kenneth Graunke
On 07/20/2012 11:00 AM, Eric Anholt wrote: Otherwise, we'd see massive spam of WARN tests, due to the frequency of the bug (about 2% of testcases on my system). I like it. For both patches: Reviewed-by: Kenneth Graunke kenn...@whitecape.org

Re: [Piglit] [PATCH] quad-invariance: Fix undefined ReadPixels behavior and make concurrent.

2012-08-23 Thread Kenneth Graunke
) } } + piglit_present_results(); + return pass ? PIGLIT_PASS : PIGLIT_WARN; } Ah, more lovely swap-then-probe code. Thanks for fixing that. Reviewed-by: Kenneth Graunke kenn...@whitecape.org ___ Piglit mailing list Piglit

Re: [Piglit] [PATCH] Add OpenCL support

2012-09-12 Thread Kenneth Graunke
On 09/12/2012 07:51 AM, Tom Stellard wrote: On Thu, Sep 06, 2012 at 10:44:18PM +0200, Blaž Tomažič wrote: On čet, 2012-09-06 at 09:16 -0700, Eric Anholt wrote: Blaž Tomažič blaz.toma...@gmail.com writes: On tor, 2012-09-04 at 07:14 -0700, Tom Stellard wrote: Some of the cl-util files contain

Re: [Piglit] [PATCH] Add a test for EXT_texture_swizzle and DEPTH_TEXTURE_MODE together.

2012-09-21 Thread Kenneth Graunke
On 09/21/2012 08:41 AM, Brian Paul wrote: On 09/21/2012 03:47 AM, Kenneth Graunke wrote: [snip] +#define Elements(x) (sizeof(x)/sizeof(*(x))) We have an ARRAY_SIZE() macro already. Oops :) I thought we had one of those, but I must've been blind when I went looking for it... + +enum

Re: [Piglit] [PATCH 08/23] util, tests: Replace GLUT visual enums with PIGLTI_GL_VISUAL enums

2012-10-03 Thread Kenneth Graunke
On 09/28/2012 01:48 PM, Chad Versace wrote: I'm trying to transition Piglit from using GLUT to using Waffle. That requires either killing or wrapping all GLUT code. Define enum piglit_gl_visual in piglit-framework.h, of which each value matches its corresponding GLUT visual enum. Do the

Re: [Piglit] [PATCH 12/23] util: Add wrappers for malloc and calloc that catch errors

2012-10-03 Thread Kenneth Graunke
that happens. Nacked-by: Kenneth Graunke kenn...@whitecape.org ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 00/23] Support tests for GL core contexts

2012-10-03 Thread Kenneth Graunke
://people.freedesktop.org/~chadversary/piglit.git]. Patches 1-9 are Reviewed-by: Kenneth Graunke kenn...@whitecape.org Patches 10-11 are Acked-by: Kenneth Graunke kenn...@whitecape.org Patch 12 is Nacked-by: Kenneth Graunke kenn...@whitecape.org I'll try and look at the rest, but you don't need to wait for me

Re: [Piglit] [PATCH 08/23] util, tests: Replace GLUT visual enums with PIGLTI_GL_VISUAL enums

2012-10-03 Thread Kenneth Graunke
On 10/03/2012 04:50 PM, Chad Versace wrote: On 10/03/2012 04:43 PM, Kenneth Graunke wrote: On 09/28/2012 01:48 PM, Chad Versace wrote: /** + * A bitmask of these enums specifies visual attributes for the test's window. + * + * Each enum has the same value of its corresponding GLUT enum

Re: [Piglit] [PATCH] gtf: Update EGLConfig ID

2012-10-08 Thread Kenneth Graunke
On 10/08/2012 03:21 PM, Chad Versace wrote: The mesa commit 7dc0be8 changed the EGLConfig ID's for the Intel driver, and piglit's GTF integration hardcodes the EGLConfig ID. (Apparently, this implies that piglit's GTF integration only works the Intel driver... hmm). Most people don't have a

Re: [Piglit] [PATCH] gtf: Update EGLConfig ID

2012-10-09 Thread Kenneth Graunke
On 10/09/2012 07:57 AM, Chad Versace wrote: On 10/08/2012 03:40 PM, Kenneth Graunke wrote: On 10/08/2012 03:21 PM, Chad Versace wrote: The mesa commit 7dc0be8 changed the EGLConfig ID's for the Intel driver, and piglit's GTF integration hardcodes the EGLConfig ID. (Apparently, this implies

[Piglit] [PATCH] Add a new GLSL parser test for ? : at global scope.

2012-10-24 Thread Kenneth Graunke
--- tests/glslparsertest/glsl2/condition-08.vert | 8 1 file changed, 8 insertions(+) create mode 100644 tests/glslparsertest/glsl2/condition-08.vert diff --git a/tests/glslparsertest/glsl2/condition-08.vert b/tests/glslparsertest/glsl2/condition-08.vert new file mode 100644 index

Re: [Piglit] [PATCH] Comment continuation in the middle of a define.

2012-10-25 Thread Kenneth Graunke
the GLSL specification and the C++98 specification. Reviewed-by: Kenneth Graunke kenn...@whitecape.org ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH] all.tests: Remove glean/rgbTriStrip.

2012-11-14 Thread Kenneth Graunke
It doesn't actually test anything, and thus can never fail. --- tests/all.tests | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/all.tests b/tests/all.tests index 70dca35..b1002d4 100644 --- a/tests/all.tests +++ b/tests/all.tests @@ -112,7 +112,6 @@ glean['pointSprite'] =

Re: [Piglit] [PATCH] glean: Drop TIFF (and PNG and ZLIB) dependencies.

2012-12-30 Thread Kenneth Graunke
On 12/30/2012 01:11 PM, Eric Anholt wrote: jfons...@vmware.com writes: From: José Fonseca jose.r.fons...@gmail.com Not actually necessary. rgbTriStrip test used it but it was just a proof of concept, never part of any test list. This greatly simplifies building piglit for Windows. I know

[Piglit] [PATCH 2/2] Convert glsl-fs-mix-constant to a shader runner test.

2012-12-31 Thread Kenneth Graunke
--- tests/all.tests| 1 - tests/shaders/CMakeLists.gl.txt| 1 - tests/shaders/glsl-fs-mix-constant.c | 81 -- tests/shaders/glsl-fs-mix-constant.frag| 7 --- tests/shaders/glsl-fs-mix-constant.shader_test

[Piglit] [PATCH 1/2] Convert glsl-fs-mix to a shader runner test.

2012-12-31 Thread Kenneth Graunke
Shader runner tests are easier to read at a glance than C tests. --- tests/all.tests | 1 - tests/shaders/CMakeLists.gl.txt | 1 - tests/shaders/glsl-fs-mix.c | 92 --- tests/shaders/glsl-fs-mix.frag| 6 ---

[Piglit] Deleting ~20% of glean/no more directory spam

2012-12-31 Thread Kenneth Graunke
This series deletes roughly 20% of Piglit's import of Glean: 1. Benchmarking Piglit is a not a benchmarking suite---it's a test suite. It has no infrastructure for even running these tests, so there's no need to keep them around. 2. Image output code Jose nuked most of this,

[Piglit] [PATCH 02/19] glean: Remove ReadPixPerfTest.

2012-12-31 Thread Kenneth Graunke
Piglit is not a benchmarking suite, and this is a benchmark, not a test. --- tests/glean/CMakeLists.gl.txt | 1 - tests/glean/treadpixperf.cpp | 551 -- tests/glean/treadpixperf.h| 88 --- 3 files changed, 640 deletions(-) delete mode 100644

[Piglit] [PATCH 03/19] glean: Remove ColoredLitPerf and ColoredTexPerf.

2012-12-31 Thread Kenneth Graunke
Piglit is not a benchmarking suite, and these are benchmarks, not tests. --- tests/glean/CMakeLists.gl.txt |1 - tests/glean/tvtxperf.cpp | 1423 - tests/glean/tvtxperf.h| 147 - 3 files changed, 1571 deletions(-) delete mode 100644

[Piglit] [PATCH 04/19] glean: Remove TexBindPerf.

2012-12-31 Thread Kenneth Graunke
Piglit is not a benchmarking suite, and this is a benchmark, not a test. --- tests/glean/CMakeLists.gl.txt | 1 - tests/glean/tchgperf.cpp | 317 -- tests/glean/tchgperf.h| 72 -- 3 files changed, 390 deletions(-) delete mode 100644

[Piglit] [PATCH 07/19] glean: Remove benchmarking from FBO test.

2012-12-31 Thread Kenneth Graunke
This allows some further simplifications as well: there's no need for separate testFunctionality, runSubTests, and runOne functions. --- tests/glean/tfbo.cpp | 153 +++ tests/glean/tfbo.h | 4 -- 2 files changed, 9 insertions(+), 148

[Piglit] [PATCH 09/19] glean: Remove dead testPerformance prototype from texture_srgb test.

2012-12-31 Thread Kenneth Graunke
There never was any benchmarking code in this test; this was just cut and pasted from somewhere else. --- tests/glean/ttexture_srgb.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/glean/ttexture_srgb.h b/tests/glean/ttexture_srgb.h index 1095565..8875b2d 100644 ---

[Piglit] [PATCH 10/19] glean: Remove unused timer.h includes from various tests.

2012-12-31 Thread Kenneth Graunke
These don't appear to use the Timer functionality, so there's no need to include it. --- tests/glean/tshaderapi.cpp | 1 - tests/glean/ttexcombine4.cpp | 1 - tests/glean/ttexswizzle.cpp| 1 - tests/glean/tvertarraybgra.cpp | 1 - 4 files changed, 4 deletions(-) diff --git

[Piglit] [PATCH 11/19] glean: Remove unused Timer class.

2012-12-31 Thread Kenneth Graunke
This was previously used for benchmarking code. There isn't any now. --- tests/glean/CMakeLists.gl.txt | 1 - tests/glean/timer.cpp | 232 -- tests/glean/timer.h | 74 -- 3 files changed, 307 deletions(-) delete mode

[Piglit] [PATCH 12/19] glean: Remove quiesce() functions.

2012-12-31 Thread Kenneth Graunke
These were used to try and settle the system before a benchmark, and aren't terribly useful now that there are no benchmarks. --- tests/glean/environ.cpp | 9 - tests/glean/environ.h | 2 -- tests/glean/winsys.cpp | 8 tests/glean/winsys.h| 1 - 4 files changed, 20

[Piglit] [PATCH 13/19] glean: Remove support for comparing result databases.

2012-12-31 Thread Kenneth Graunke
I suspect most people simply use piglit-summary-html.py to compare results across test runs. Piglit also supports comparing more than two test runs. In some cases, Glean's code did offer more detailed information such as image comparisons (although not all tests implemented such features).

[Piglit] [PATCH 14/19] glean: Remove remnants of image output code.

2012-12-31 Thread Kenneth Graunke
Jose removed the rgbTriStrip test and TIFF output, which was the only remaining user of this code. --- tests/glean/environ.cpp | 15 --- tests/glean/environ.h | 11 --- 2 files changed, 26 deletions(-) diff --git a/tests/glean/environ.cpp b/tests/glean/environ.cpp index

[Piglit] [PATCH 15/19] glean: Remove support for writing results databases.

2012-12-31 Thread Kenneth Graunke
At this point, Glean wasn't writing anything interesting anyway; it was just clutter. Since there's no need to specify a results directory on the command line any longer, this patch also removes the -r option, making run tests the default action. This also allows us to simplify the Piglit runner

[Piglit] [PATCH 16/19] glean: Remove Options::mode.

2012-12-31 Thread Kenneth Graunke
Now that result comparison is gone, there's no real need to store an enum here...except for --listtests, it's always run. Simplify. --- tests/glean/main.cpp| 24 tests/glean/options.cpp | 1 - tests/glean/options.h | 4 3 files changed, 8 insertions(+), 21

[Piglit] [PATCH 17/19] glean: Remove CodedID code.

2012-12-31 Thread Kenneth Graunke
This wasn't used for anything. --- tests/glean/CMakeLists.gl.txt | 1 - tests/glean/codedid.cpp | 146 -- tests/glean/codedid.h | 92 -- 3 files changed, 239 deletions(-) delete mode 100644 tests/glean/codedid.cpp

[Piglit] [PATCH 18/19] glean: Remove syntatic sugar classes from GLUtils.

2012-12-31 Thread Kenneth Graunke
It turns out these frequently-used OpenGL operations weren't used at all. --- tests/glean/glutils.cpp | 157 tests/glean/glutils.h | 42 - 2 files changed, 199 deletions(-) diff --git a/tests/glean/glutils.cpp

[Piglit] [PATCH 19/19] glean: Remove SpiralStrip2D and SpiralTri2D.

2012-12-31 Thread Kenneth Graunke
Both of these were unused. --- tests/glean/geomutil.cpp | 156 --- tests/glean/geomutil.h | 20 -- 2 files changed, 176 deletions(-) diff --git a/tests/glean/geomutil.cpp b/tests/glean/geomutil.cpp index 01645f7..1852332 100644 ---

Re: [Piglit] [PATCH] Test that loop unrolling properly infers loop bounds.

2013-01-07 Thread Kenneth Graunke
-bounds-unrolled.shader_test Reviewed-by: Kenneth Graunke kenn...@whitecape.org ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] Test varying structs in GLSL ES 3.00.

2013-01-29 Thread Kenneth Graunke
On 01/21/2013 03:01 PM, Paul Berry wrote: diff --git a/tests/spec/glsl-es-3.00/execution/varying-struct-arrays.shader_test b/tests/spec/glsl-es-3.00/execution/varying-struct-arrays.shader_test Seems like a good mean test...I'd hate to debug it, but worth having. I didn't review the

[Piglit] [PATCH] Add a basic CopyTexImage test for packed depth/stencil formats.

2013-02-05 Thread Kenneth Graunke
This test fills the window with expected depth/stencil values, and uses CopyTexImage2D to copy those to a texture. It then reads back the texture and verifies that both depth and stencil were successfully copied. This is particularly useful because on Sandybridge and later hardware, we use a

Re: [Piglit] [PATCH V2 1/2] ext_framebuffer_multisample: skip negative-max-samples

2013-03-28 Thread Kenneth Graunke
(ARB_texture_multisample is supposed and + redefines this behavior; skipping\n); Ditto. Otherwise, patch 1 is: Reviewed-by: Kenneth Graunke kenn...@whitecape.org + piglit_report_result(PIGLIT_SKIP); + } + glGetIntegerv(GL_MAX_SAMPLES, max_samples

Re: [Piglit] [PATCH V2 2/2] arb_texture_multisample: add new negative-max-samples test

2013-03-28 Thread Kenneth Graunke
like a good test. Thanks Chris! Reviewed-by: Kenneth Graunke kenn...@whitecape.org +check_subtest(t); + +piglit_report_result(PIGLIT_PASS); +} ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman

Re: [Piglit] [PATCH] Add tests for the GL_AMD_performance_monitor extension.

2013-04-01 Thread Kenneth Graunke
On 03/28/2013 01:01 AM, Kenneth Graunke wrote: On 03/27/2013 12:12 AM, Ken Phillis Jr wrote: I read over the patch, and I noticed a few things. 1) Which platform did you test on? My guess is Linux. Linux with the AMD Catalyst driver, and Linux with my branch of Mesa that implements this. 2

Re: [Piglit] [PATCH 11/20] framework: Port from execfile to compile exec (required by python 3.x)

2013-04-17 Thread Kenneth Graunke
On 04/12/2013 04:39 PM, Jon Severinsson wrote: --- framework/core.py |2 +- tests/all.tests |6 ++ 2 filer ändrade, 7 tillägg(+), 1 borttagning(-) diff --git a/framework/core.py b/framework/core.py index 744fda4..62b2ed9 100644 --- a/framework/core.py +++ b/framework/core.py

[Piglit] Requiring Python 3.x for Piglit?

2013-04-17 Thread Kenneth Graunke
Does anyone object to porting to Python 3.x (and dropping 2.x support)? Some useful data points: - Debian stable has 3.1, testing/unstable have 3.2 - Fedora 18 and Arch Linux have 3.3 - Windows installers for 3.3 are available on python.org - Mac OS X support for 3.3 is also available on

Re: [Piglit] [PATCH 04/20] framework: Update import statements to support Python 3.x in addition to 2.x.

2013-04-17 Thread Kenneth Graunke
Hi Jon, There's a lot going on in this patch, for example: 1. Search and replace of, say, ConfigParser with configparser 2. try/expect blocks for using both Python 2/3 names for various things 3. Modifying the path all over the place. 4. Reorganizing imports It'd be nice to split this into

[Piglit] [PATCH 1/6] framework: Convert the ConfigParser import to lowercase.

2013-04-17 Thread Kenneth Graunke
From: Jon Severinsson j...@severinsson.net This matches the Python 3.x name. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- framework/glsl_parser_test.py | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/framework/glsl_parser_test.py b/framework

[Piglit] [PATCH 2/6] framework: Make configparser import work in Python 3.x as well.

2013-04-17 Thread Kenneth Graunke
From: Jon Severinsson j...@severinsson.net First, we can try to import it via the Python 3.x name. If that fails, we can try the Python 2.x name. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- framework/glsl_parser_test.py | 5 - 1 file changed, 4 insertions(+), 1 deletion

[Piglit] [PATCH 3/6] framework: Make StringIO import Python 3.x compatible.

2013-04-17 Thread Kenneth Graunke
From: Jon Severinsson j...@severinsson.net StringIO comes from the 'cStringIO' module in Python 2.x, and from the 'io' module in Python 3.x. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- framework/core.py | 5 - framework/glsl_parser_test.py | 7 ++- 2 files

[Piglit] [PATCH 4/6] framework: Convert the Queue import to lowercase.

2013-04-17 Thread Kenneth Graunke
From: Jon Severinsson j...@severinsson.net This matches the Python 3.x name. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- framework/threadpool.py | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/framework/threadpool.py b/framework/threadpool.py

[Piglit] [PATCH 5/6] framework: Make queue import Python 3.x compatible.

2013-04-17 Thread Kenneth Graunke
From: Jon Severinsson j...@severinsson.net First, we can try to import the Python 3.x name. If that fails, we can try the Python 2.x name. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- framework/threadpool.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[Piglit] [PATCH 6/6] framework: Use explicit relative imports to be Python 3 compatible.

2013-04-17 Thread Kenneth Graunke
. This is the approach taken by the 2to3 command. For more information, see: http://stackoverflow.com/questions/12172791/changes-in-import-statement-python3 Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- framework/core.py | 8 framework/exectest.py | 2

Re: [Piglit] Requiring Python 3.x for Piglit?

2013-04-17 Thread Kenneth Graunke
On 04/17/2013 07:37 AM, Brian Paul wrote: On 04/17/2013 03:48 AM, Kenneth Graunke wrote: Does anyone object to porting to Python 3.x (and dropping 2.x support)? Some useful data points: - Debian stable has 3.1, testing/unstable have 3.2 - Fedora 18 and Arch Linux have 3.3 - Windows installers

Re: [Piglit] [PATCH 4/4] piglit-summary-junit.py: Convert optparse to argparse

2013-04-21 Thread Kenneth Graunke
On 04/19/2013 09:16 PM, Dylan Baker wrote: Optparse has been deprecated in favor of argparse upstream (PEP 389 http://www.python.org/dev/peps/pep-0389/), and since we are using argparse already in the other modules, it makes sense to replace optparse and use only one parsing method in all

Re: [Piglit] [Mesa-dev] [PATCH v2] amd_performance_monitor: Fix multi-statement macro 'report'.

2013-05-07 Thread Kenneth Graunke
. Reviewed-by: Kenneth Graunke kenn...@whitecape.org Signed-off-by: Vinson Lee v...@freedesktop.org --- tests/spec/amd_performance_monitor/api.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/spec/amd_performance_monitor/api.c b/tests/spec

Re: [Piglit] [PATCH v2 1/8] html: Use CSS for indenting table rows rather than colspan.

2013-05-08 Thread Kenneth Graunke
On 04/30/2013 10:34 AM, Dylan Baker wrote: From: Kenneth Graunke kenn...@whitecape.org Previously, we indented groups of tests by adding 10 columns of whitespace to the table and adding colspan. This is pretty ugly; we really should use CSS for things like this. The new CSS-based approach

Re: [Piglit] [PATCH] util/gl: Change default waffle platform

2013-05-15 Thread Kenneth Graunke
to some EGL platform, this problem caused GLES tests to skip. Enables 76 GLES tests on my system. I presume GLX tests keep working with this change (just those tests use GLX)? If so, Acked-by: Kenneth Graunke kenn...@whitecape.org CC: Eric Anholt e...@anholt.net Signed-off-by: Chad Versace

Re: [Piglit] [PATCH v2 04/11] piglit-summary-py: Use the new summary class to generate HTML

2013-05-19 Thread Kenneth Graunke
On 05/19/2013 07:30 AM, Ken Phillis Jr wrote: On Sun, May 19, 2013 at 1:07 AM, Kenneth Graunke kenn...@whitecape.org wrote: On 05/18/2013 09:35 PM, Dylan Baker wrote: My problem with the current list format is its too complex, and is trying to solve nonexistent problems. There is no reason

Re: [Piglit] [PATCH v2 02/11] framework/summary.py: Adds new summary class and two support classes

2013-05-22 Thread Kenneth Graunke
On 05/17/2013 09:31 AM, Dylan Baker wrote: This new summary class (currently NewSummary), is a complete redesign of the summary generation system. Much of the code in summary was not commented, and also not clear as to what it was doing, making it very difficult to maintain and even more

Re: [Piglit] [PATCH v2 04/11] piglit-summary-py: Use the new summary class to generate HTML

2013-05-25 Thread Kenneth Graunke
be allowed. Assuming you make this change, this patch is: Reviewed-by: Kenneth Graunke kenn...@whitecape.org args = parser.parse_args() -core.checkDir(args.summaryDir, not args.overwrite) +# If args.list and args.resultsFiles are empty, then give an error +if not args.list

Re: [Piglit] [PATCH v2 07/11] summary: Build subdirectories for subtest result pages

2013-05-25 Thread Kenneth Graunke
On 05/17/2013 09:31 AM, Dylan Baker wrote: With 10,000+ tests all living in the same folder it can be hard to identify a single file, especially when trying to work with the HTML generation itself. This patch changes the behavior so that each test has a directory tree for the group results with

Re: [Piglit] [PATCH v2 09/11] HTML summary: Provides means to exclude generating test result files

2013-05-25 Thread Kenneth Graunke
', 'all'], Shouldn't 'skip' be an option too? By 'skip' I mean tests that were executed but explicitly output 'skip' (say due to missing extensions), not missing tests that weren't present in a particular test run. With those changes, this would get a: Reviewed-by: Kenneth Graunke kenn

Re: [Piglit] [PATCH v2 10/11] HTML Summary: Don't generate empty pages

2013-05-25 Thread Kenneth Graunke
On 05/17/2013 09:32 AM, Dylan Baker wrote: Previously every page (fixes, regressions, etc) was generated regardless of whether there was anything on that page. That is simply silly, this patch does a quick check and only generates pages that actually have content, and add those pages to the link

Re: [Piglit] [PATCH v2 11/11] summary.py: Change skip to N/A for tests not run

2013-05-25 Thread Kenneth Graunke
On 05/17/2013 09:32 AM, Dylan Baker wrote: When comparing two test results the current behavior sets a status of skip for tests that were not run in one set of results. This is confusing and silly, so instead give them a status of N/A which gives a clear understanding of what skipped, and what

[Piglit] [PATCH 1/2] Add a parser test for #version 110 es.

2013-06-07 Thread Kenneth Graunke
This should fail as there aren't profiles in GLSL 1.10. It currently causes assertion failures in Mesa. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- tests/spec/glsl-1.10/compiler/invalid-version-es.vert | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 tests

[Piglit] [PATCH 2/2] Add new tests for GLSL 1.50 #version directives.

2013-06-07 Thread Kenneth Graunke
as expected. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- tests/spec/glsl-1.50/compiler/profiles/core-profile-define.frag| 7 +++ .../spec/glsl-1.50/compiler/profiles/version-150-bad-profile.frag | 7 +++ .../spec/glsl-1.50/compiler/profiles/version-150-core-profile.frag | 7

[Piglit] [PATCH] Add interface blocks that make sure unsized arrays are not allowed.

2013-06-08 Thread Kenneth Graunke
This is explicitly forbidden: Geometry shader input blocks [...]. All other input and output block arrays must specify an array size. The vertex and fragment shader tests pass on Mesa. The GS test has not been tested. Cc: Jordan Justen jljus...@gmail.com Signed-off-by: Kenneth Graunke kenn

Re: [Piglit] [PATCH 2/2] Add new tests for GLSL 1.50 #version directives.

2013-06-08 Thread Kenneth Graunke
On 06/07/2013 10:51 PM, Matt Turner wrote: [snip] Both are Reviewed-by: Matt Turner matts...@gmail.com Does glslparsertest test need to know about core/compatibility options for glsl_version? If we want to have compatibility mode tests, then yes. But since we aren't planning on

Re: [Piglit] [PATCH] Add interface blocks that make sure unsized arrays are not allowed.

2013-06-08 Thread Kenneth Graunke
On 06/08/2013 03:21 AM, Fabian Bieler wrote: On Sat, Jun 8, 2013, at 08:28 AM, Kenneth Graunke wrote: This is explicitly forbidden: Geometry shader input blocks [...]. All other input and output block arrays must specify an array size. The vertex and fragment shader tests pass on Mesa

[Piglit] [PATCH] Add a new test profile: gpu.tests.

2013-06-13 Thread Kenneth Graunke
remove API-only tests (though there are a much smaller number of those and they run fairly quickly). Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- tests/gpu.tests | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 tests/gpu.tests This may be kind

Re: [Piglit] [PATCH] Add a new test profile: gpu.tests.

2013-06-14 Thread Kenneth Graunke
On 06/14/2013 06:28 AM, Ken Phillis Jr wrote: On Thu, Jun 13, 2013 at 4:48 PM, Kenneth Graunke kenn...@whitecape.org wrote: Often, I make changes to Mesa which only affect tests that actually execute on the GPU. For such changes, there's no real benefit to running compiler-only/front-end tests

[Piglit] [PATCH] Add a test to ensure seamless cubemap filtering is initially disabled.

2013-06-15 Thread Kenneth Graunke
Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- tests/spec/arb_seamless_cube_map/CMakeLists.gl.txt | 1 + .../arb_seamless_cube_map/initially-disabled.c | 51 ++ 2 files changed, 52 insertions(+) create mode 100644 tests/spec/arb_seamless_cube_map/initially

[Piglit] [PATCH v2] Add a test to ensure seamless cubemap filtering is initially disabled.

2013-06-15 Thread Kenneth Graunke
v2: Actually add the new test to all.tests. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- tests/all.tests| 1 + tests/spec/arb_seamless_cube_map/CMakeLists.gl.txt | 1 + .../arb_seamless_cube_map/initially-disabled.c | 51

[Piglit] [PATCH] glsl-1.50: Remove gl_Position from fragment shader.

2013-08-22 Thread Kenneth Graunke
This must've been cut and pasted from a vertex shader by accident. Signed-off-by: Kenneth Graunke kenn...@whitecape.org Cc: Nicholas Mack nichm...@gmail.com --- tests/spec/glsl-1.50/compiler/layout-global-only.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/spec

[Piglit] [PATCH 2/2] glsl-3.30: Port the profile tests forward.

2013-08-23 Thread Kenneth Graunke
These are the tests from glsl-1.50/compiler/profiles with the version numbers changed. It seemed worth testing for 3.30 as well. --- .../compiler/profiles/core-profile-default.vert | 16 .../glsl-3.30/compiler/profiles/core-profile-define.frag | 7 +++

[Piglit] [PATCH 1/2] glsl-3.30: Add a test for __VERSION__ == 330.

2013-08-23 Thread Kenneth Graunke
This is copy and pasted from glsl-1.50/compiler/version-macro.frag with the version changed. Since this is the first test for GLSL 3.30, this patch also hooks up the directory so all.tests scans it for parsertests and shader runner tests. --- tests/all.tests | 8

Re: [Piglit] [PATCH] gs: Test EndPrimitive() functionality.

2013-08-23 Thread Kenneth Graunke
; + + piglit_present_results(); + + return pass ? PIGLIT_PASS : PIGLIT_FAIL; +} Reviewed-by: Kenneth Graunke kenn...@whitecape.org ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 2/2] glsl-3.30: Port the profile tests forward.

2013-08-23 Thread Kenneth Graunke
On 08/23/2013 12:51 PM, Anuj Phogat wrote: On Fri, Aug 23, 2013 at 11:46 AM, Kenneth Graunke kenn...@whitecape.org wrote: These are the tests from glsl-1.50/compiler/profiles with the version numbers changed. It seemed worth testing for 3.30 as well. --- .../compiler/profiles/core-profile

Re: [Piglit] [PATCH] Add new test for MRT alpha test

2013-08-23 Thread Kenneth Graunke
-alphatest.c | 153 ++ 3 files changed, 155 insertions(+) create mode 100644 tests/fbo/fbo-mrt-alphatest.c Reviewed-by: Kenneth graunke kenn...@whitecape.org ___ Piglit mailing list Piglit@lists.freedesktop.org http

[Piglit] [PATCH] glsl-3.30: Add a coverage test for bitcasting functions.

2013-08-23 Thread Kenneth Graunke
This ensures that the bitcasting functions are available in 3.30 without having to use #extension GL_ARB_shader_bit_encoding: require. Serious functional testing of those functions is left to Matt's thorough generated tests for the GL_ARB_shader_bit_encoding extension. Signed-off-by: Kenneth

Re: [Piglit] [PATCH] glsl-1.10 / glsl-1.20: Relax precision requirements of variable indexing tests

2013-08-28 Thread Kenneth Graunke
the generator script (and should've been checked in earlier), so I'm OK with it. Reviewed-by: Kenneth Graunke kenn...@whitecape.org ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 1/2] glsl-3.30: Add a test for __VERSION__ == 330.

2013-08-28 Thread Kenneth Graunke
On 08/28/2013 11:45 AM, Ian Romanick wrote: On 08/23/2013 11:46 AM, Kenneth Graunke wrote: This is copy and pasted from glsl-1.50/compiler/version-macro.frag with the version changed. Since this is the first test for GLSL 3.30, this patch also hooks up the directory so all.tests scans

[Piglit] [PATCH 2/4] glsl: Add new __VERSION__ tests for GLSL 1.10-1.40 and ES 1.00/3.00.

2013-08-28 Thread Kenneth Graunke
These follow the pattern of the 1.50 and 3.30 tests. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- tests/spec/glsl-1.10/compiler/version-macro.frag| 14 ++ tests/spec/glsl-1.20/compiler/version-macro.frag| 14 ++ tests/spec/glsl-1.30/compiler/version

[Piglit] [PATCH 3/4] glsl-1.10: Test that __VERSION__ == 110 even without #version specified.

2013-08-28 Thread Kenneth Graunke
Again, following the pattern of the other __VERSION__ macro tests. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- tests/spec/glsl-1.10/compiler/version-macro-default.frag | 13 + 1 file changed, 13 insertions(+) create mode 100644 tests/spec/glsl-1.10/compiler/version

[Piglit] [PATCH 1/4] glsl: Rewrite version-macro tests to ensure they're #defines.

2013-08-28 Thread Kenneth Graunke
The old tests verified that the value of __VERSION__ was correct, but didn't verify that __VERSION__ is an actual #define, as opposed to a built-in integer constant variable. The new approach checks both. Suggested-by: Ian Romanick ian.d.roman...@intel.com Signed-off-by: Kenneth Graunke kenn

[Piglit] [PATCH 4/4] Delete shader runner tests for the __VERSION__ macro.

2013-08-28 Thread Kenneth Graunke
These have been superceded by tests/spec/glsl*/compiler/version-macro*. The parser tests already ensure the value is correct (and fail to compile if it isn't), so there's no additional value in having an execution test. --- tests/shaders/glsl-version-define-110.shader_test | 19

Re: [Piglit] [PATCH] glslparsertest: Fix handling of --check-link option

2013-08-28 Thread Kenneth Graunke
the command line options in the PIGLIT_GL_TEST_CONFIG_BEGIN block to avoid this problem. Signed-off-by: Ian Romanick ian.d.roman...@intel.com Cc: Kenneth Graunke kenn...@whitecape.org Reviewed-by: Kenneth Graunke kenn...@whitecape.org ___ Piglit mailing

[Piglit] [PATCH] Fix out of bounds read in the AMD_performance_monitor measure test.

2013-09-19 Thread Kenneth Graunke
If the last counter returned is a 32-bit value, reading a uint64_t might go past the end of the buffer. So, delay reading the 64-bit value until we know the type is 64-bit. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- tests/spec/amd_performance_monitor/measure.c | 2 +- 1 file

Re: [Piglit] [PATCH 1/3] piglit-run: add back -c0

2013-09-21 Thread Kenneth Graunke
On 09/16/2013 11:08 AM, Marek Olšák wrote: --- piglit-run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piglit-run.py b/piglit-run.py index e8e11b7..7945b21 100755 --- a/piglit-run.py +++ b/piglit-run.py @@ -62,7 +62,7 @@ def main():

Re: [Piglit] [PATCH 2/3] Merge quick-driver.tests to quick.tests

2013-09-21 Thread Kenneth Graunke
(which always fail, and probably will continue to fail for the forseeable future) in quick.tests makes a lot of sense. I'm glad to see that you kept streaming-texture-leak. It is pretty slow, but it at least passes and has caught bugs in the past. Reviewed-by: Kenneth Graunke kenn

Re: [Piglit] [PATCH] piglit: Remove gtf.tests.

2013-09-21 Thread Kenneth Graunke
. --- tests/all.tests | 5 tests/gtf.tests | 85 - 2 files changed, 90 deletions(-) delete mode 100644 tests/gtf.tests Makes sense to me. Reviewed-by: Kenneth Graunke kenn...@whitecape.org

[Piglit] [PATCH] textureSize: Initialize sample_count to 1.

2013-09-23 Thread Kenneth Graunke
(textureSize.c:68) Signed-off-by: Kenneth Graunke kenn...@whitecape.org Cc: Chris Forbes chr...@ijw.co.nz --- tests/texturing/shaders/textureSize.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/texturing/shaders/textureSize.c b/tests/texturing/shaders/textureSize.c index f010d9c

Re: [Piglit] [PATCH 1/2] threadpool.py: Completely rewrite threadpool.py

2013-10-06 Thread Kenneth Graunke
was going to say you should add his copyright, but you've rewritten most of the code anyway, so I don't think you really need to. Either way, this looks great. Reviewed-and-tested-by: Kenneth Graunke kenn...@whitecape.org +from Queue import Queue +from threading import Thread + + +class Worker(Thread

Re: [Piglit] [PATCH 1/7] framework_tests/summary.py: Tests Summary.py's assignment of statues

2013-10-13 Thread Kenneth Graunke
On 09/27/2013 02:39 PM, Dylan Baker wrote: This code tests the way Summary.py assigns statuses to tests. Specifically it tests regressions, fixes, changes, and problems, assuring that only the correct permutations of these tests are added to the list. I pulled your latest 'status-update-v2'

Re: [Piglit] [PATCH 5/7] status: Make use of the status objects

2013-10-14 Thread Kenneth Graunke
()}) + ['result'] for i in self.results]))} Ditto. # Print the summary print summary: This is way nicer. Reviewed-by: Kenneth Graunke kenn...@whitecape.org ___ Piglit mailing list Piglit

Re: [Piglit] [PATCH 6/7] summary: Remove optimization with no impact

2013-10-14 Thread Kenneth Graunke
(+), 36 deletions(-) I'm really happy to see this. This means I get changes.html back, even for single results, which is what I want. I have that page bookmarked, and always go there, then click on 'problems' or whatever page I really want to look at. Reviewed-by: Kenneth Graunke kenn

Re: [Piglit] [PATCH 7/7] summary: Fold __generate_lists into __init__

2013-10-14 Thread Kenneth Graunke
, +# changes and skips Typos: Craete, regerssions Otherwise, Reviewed-by: Kenneth Graunke kenn...@whitecape.org ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] piglit-summary-html.py: Fix the -e/--exclude-details option

2013-10-15 Thread Kenneth Graunke
On 10/15/2013 03:58 PM, Dylan Baker wrote: This was broken by a previous commit 06b185187, this patch corrects that oversight allowing exclude to continue working. Signed-off-by: Dylan Baker baker.dyla...@gmail.com --- piglit-summary-html.py | 15 --- 1 file changed, 12

Re: [Piglit] [PATCH] tests: Add GL_ARB_texture_mirror_clamp_to_edge to texturing test.

2013-10-20 Thread Kenneth Graunke
, - {GL_EXT_texture_mirror_clamp, NULL}}, + {GL_EXT_texture_mirror_clamp, NULL, NULL}}, {0} }; Reviewed-and-tested-by: Kenneth Graunke kenn...@whitecape.org And...pushed, thanks again for doing this! ___ Piglit mailing list Piglit

[Piglit] Python 2.7.4/5 bad file descriptor bug should be fixed soon

2013-10-24 Thread Kenneth Graunke
A number of people (at least me, cworth, and ajax) have been hitting a bug where tests randomly fail with a Bad file descriptor error. It only occurs with Python 2.7.4 and 2.7.5. Other people have strangely not been affected. I did some searching and discovered this Python bug:

Re: [Piglit] [PATCH v2 3/5] util: Add a -list-subtests option that will list all the subtests

2013-10-28 Thread Kenneth Graunke
On 10/15/2013 05:32 PM, Ian Romanick wrote: From: Ian Romanick ian.d.roman...@intel.com The utility is that all.tests can do 'sometest -list-subtests' to automatically get the list of subtests to run. Since the syntax for selecting subtests is regularized, this works quite well.

  1   2   3   4   >