[Piglit] [PATCH v2] cl: Fix cl_khr_fp64 checks

2016-04-28 Thread Jan Vesely
v2: fix sizeof test Signed-off-by: Jan Vesely --- tests/cl/program/build/scalar-data-types.cl | 5 +++-- tests/cl/program/execute/sizeof.cl | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/cl/program/build/scalar-data-types.cl b/tests/cl/program/build/scal

[Piglit] [PATCH] cl: Initialize result variable.

2016-04-28 Thread Jan Vesely
Fixes Unknown status "Unknown result" python exception. Signed-off-by: Jan Vesely --- tests/cl/api/set-kernel-arg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cl/api/set-kernel-arg.c b/tests/cl/api/set-kernel-arg.c index fb77059..0d476e3 100644 --- a/tests/cl/api/s

[Piglit] [PATCH] cl: Fix cl_khr_fp64 check

2016-04-28 Thread Jan Vesely
Signed-off-by: Jan Vesely --- tests/cl/program/build/scalar-data-types.cl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/cl/program/build/scalar-data-types.cl b/tests/cl/program/build/scalar-data-types.cl index 00693f5..09fd15f 100755 --- a/tests/cl/program/build/

[Piglit] [PATCH 05/37] glean/tfragprog1: port COS tests to shader runner

2016-04-28 Thread Dylan Baker
This ports both of the COS tests to shader runner. Signed-off-by: Dylan Baker --- tests/all.py | 2 -- tests/glean/tfragprog1.cpp | 32 -- .../cos-clamped-values.shader_test | 22 +++ .

[Piglit] [PATCH 01/37] editorconfig: update the editorconfig file

2016-04-28 Thread Dylan Baker
- set python to utf-8 - remove "remove trailing whitespace" from python (like the emacs config) - add glsl shaders to C style Signed-off-by: Dylan Baker --- .editorconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index c614fcc..5e140a8

[Piglit] [PATCH 12/37] glean/tfragprog1: port FRC test to shader_runner

2016-04-28 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 9 - .../built-in-functions/frc.shader_test | 16 3 files changed, 16 insertions(+), 10 deletions(

[Piglit] [PATCH 11/37] glean/tfragprog1: port FLR test to shader_runner

2016-04-28 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp| 16 .../built-in-functions/flr.shader_test| 19 +++ 3 files changed, 19 insertions(+), 17 deletions

[Piglit] [PATCH 00/37] Port glean fragprog tests to shader_runner

2016-04-28 Thread Dylan Baker
This is the start of an effort on my part to completely get rid of glean by porting the useful, non-duplicated parts to the piglit infastructure and deleting the rest the tests. This first part covers just the ARB fragment program tests, and there are a significant number of them that there are no

[Piglit] [PATCH 02/37] glean/tfragprog1: port ABS test to shader_runner

2016-04-28 Thread Dylan Baker
Possible duplicate tests: shaders/fp-abs-01.c shaders/fp-abs-02.c Signed-off-by: Dylan Baker --- tests/all.py | 2 +- tests/glean/tfragprog1.cpp | 13 - .../built-in-functions/abs.shader_test

[Piglit] [PATCH 07/37] glean/tfragprog1: port DP4 test to shader_runner

2016-04-28 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 13 - .../built-in-functions/dp4.shader_test | 18 ++ 3 files changed, 18 insertions(+), 14 deletions(

[Piglit] [PATCH 09/37] glean/tfragprog1: port DST test to shader_runner

2016-04-28 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 15 --- .../built-in-functions/dst.shader_test | 18 ++ 3 files changed, 18 insertions(+), 16 deletion

[Piglit] [PATCH 10/37] glean/tfragprog1: port EX2 test to shader_runner

2016-04-28 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 18 -- .../built-in-functions/ex2.shader_test | 22 ++ 3 files changed, 22 insertions(+), 19 deletions(-)

[Piglit] [PATCH 08/37] glean/tfragprog1: port DPH test to shader_runner

2016-04-28 Thread Dylan Baker
This is a simplified version of the same test, but without some extra operations. Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 16 .../built-in-functions/dph.shader_test

[Piglit] [PATCH 04/37] glean/tfragprog1: Port CMP test to shader_runner

2016-04-28 Thread Dylan Baker
This also adds a similar CMP_SAT test. Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 11 --- .../built-in-functions/cmp.shader_test | 20 .../built-in-f

[Piglit] [PATCH 03/37] glean/tfragprog1: port ADD tests to shader_runner

2016-04-28 Thread Dylan Baker
This ports the following tests: - ADD test - ADD with saturation - ADD an immediate - ADD negative immediate It does not port ADD negative "immediate (2)", which adds MOV, MUL, and swizzling. It might be a useful test but it's not really testing ADD other than that it tests that ADD can be used wi

[Piglit] [PATCH 06/37] glean/tfragprog1: port DP3 tests to shader_runner

2016-04-28 Thread Dylan Baker
This ports the first test and just removes the second test, which like some of the other dropped tests doesn't really focus on DP3, or on a reported bug for DP3, it just adds complexity. Signed-off-by: Dylan Baker --- tests/all.py | 2 -- tests/glean/tfragp

[Piglit] [PATCH 5/7] util: Add stencil support to piglit_depth_texture()

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/fbo/fbo-generatemipmap-formats.c | 2 +- tests/shaders/shader_runner.c | 10 +- tests/util/piglit-util-gl.c| 32 ++-- tests/util/piglit-util-gl.h| 3 ++- 4 files changed, 34 insertions

[Piglit] [PATCH 7/7] stencil_texturing: Add test for layered miptree

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/all.py | 4 + tests/spec/arb_stencil_texturing/CMakeLists.gl.txt | 1 + .../arb_stencil_texturing/draw_layered_miptree.c | 267 + 3 files changed, 272 insertions(+) create mode 100644 tests/

[Piglit] [PATCH 3/7] util: Refactor depth level setup

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/util/piglit-util-gl.c | 87 + 1 file changed, 49 insertions(+), 38 deletions(-) diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index 5e96c33..d09ce8e 100644 --- a/tests/util/piglit-util-

[Piglit] [PATCH 6/7] stencil_texturing: Use piglit_depth_texture()

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/spec/arb_stencil_texturing/draw.c | 40 + 1 file changed, 6 insertions(+), 34 deletions(-) diff --git a/tests/spec/arb_stencil_texturing/draw.c b/tests/spec/arb_stencil_texturing/draw.c index 9353240..c4152c9 100644 --- a

[Piglit] [PATCH 4/7] util: Add support for vertical gradient in piglit_depth_texture()

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/fbo/fbo-generatemipmap-formats.c | 3 ++- tests/shaders/shader_runner.c | 15 tests/util/piglit-util-gl.c| 43 +++--- tests/util/piglit-util-gl.h| 17 +- 4 files change

[Piglit] [PATCH 2/7] util: Refactor data generation for depth levels

2016-04-28 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- tests/util/piglit-util-gl.c | 42 +- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index b288a67..5e96c33 100644 --- a/tests/util/piglit-util-gl.

[Piglit] [PATCH 1/7] stencil_texturing: Allow testing of texelFetch also

2016-04-28 Thread Topi Pohjolainen
CC: Kenneth Graunke Signed-off-by: Topi Pohjolainen --- tests/all.py| 3 +- tests/spec/arb_stencil_texturing/draw.c | 49 +++-- 2 files changed, 43 insertions(+), 9 deletions(-) diff --git a/tests/all.py b/tests/all.py index 93d64e6..dd6f