[Piglit] [PATCH] glean: Fix fbo errors case

2014-03-24 Thread Chris Forbes
If the framebuffer has no attachments at all, the first incomplete status generated is FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT. Adjust the tests for FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER and FRAMEBUFFER_INCOMPLETE_READ_BUFFER to avoid tripping over this, by adding a depth renderbuffer attachment.

Re: [Piglit] [PATCH 01/15] util shader: Add support for tessellation shaders.

2014-03-24 Thread Ken Phillis Jr
I just looked over the set of patches and I noticed a few things. 1) Have you tested packaging with this? I noticed that "tese" and "tesc" file extensions are not in the install parameter for generated_tests and tests. I would suggest adding this to guarantee that distributed testing continues to

[Piglit] [PATCH 08/15] arb_tessellation_shader: Test glsl preprocessor defines.

2014-03-24 Thread Fabian Bieler
Signed-off-by: Fabian Bieler --- tests/all.py | 3 +++ .../spec/arb_tessellation_shader/compiler/define.tesc | 19 +++ .../spec/arb_tessellation_shader/compiler/define.tese | 19 +++ 3 files changed, 41 insertions(+) creat

[Piglit] [PATCH 15/15] arb_tessellation_shader: Negative test linking without vertex shader.

2014-03-24 Thread Fabian Bieler
>From the ARB_tessellation_shader spec (Section 2.14.2): Linking will fail if the program object contains objects to form a tessellation control shader (see section 2.X.1), and * the program contains no objects to form a vertex shader; >From the ARB_tessellation_shader spec (Section 2

[Piglit] [PATCH 12/15] arb_tessellation_shader: Negative test get program parameters.

2014-03-24 Thread Fabian Bieler
From the ARB_tessellation_shader spec (Errors section): "The error INVALID_OPERATION is generated by GetProgramiv if identifies a tessellation control or evaluation shader-specific property and has not been linked successfully, or does not contain objects to form a shader whose type

[Piglit] [PATCH 14/15] arb_tessellation_shader: Negative test output-layout size mismatch.

2014-03-24 Thread Fabian Bieler
>From the ARB_tessellation_shader spec (Section 4.3.8.2): "It is a compile-time error if the output patch vertex count specified in an output layout qualifier does not match the array size specified in any output variable declaration in the same shader." Signed-off-by: Fabian Bieler --- .

[Piglit] [PATCH 11/15] arb_tessellation_shader: Negative test mismatching shader and primitive type.

2014-03-24 Thread Fabian Bieler
From the ARB_tessellation_shader spec (Errors section): "The error INVALID_OPERATION is generated by Begin (or vertex array commands that implicitly call Begin) if the active program contains a tessellation control or evaluation shader and the primitive mode is not PATCHES. The

[Piglit] [PATCH 01/15] util shader: Add support for tessellation shaders.

2014-03-24 Thread Fabian Bieler
Signed-off-by: Fabian Bieler --- tests/util/piglit-shader.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/util/piglit-shader.c b/tests/util/piglit-shader.c index b326abd..5c7a16e 100644 --- a/tests/util/piglit-shader.c +++ b/tests/util/piglit-shader.c @@ -119,6 +119,10 @@ shader_n

[Piglit] [PATCH 10/15] arb_tessellation_shader: Negative test without required layout qualifiers.

2014-03-24 Thread Fabian Bieler
Tessellation control shaders require the vertices output layout qualifier. Tessellation evaluation shaders require the primitive mode input layout qualifier. Test that linnking fails without them. Signed-off-by: Fabian Bieler --- .../compiler/no-input-layout.tese | 17 +

[Piglit] [PATCH 07/15] arb_tessellation_shader: Test control layout getters.

2014-03-24 Thread Fabian Bieler
Use glGetProgramiv() to test tessellation control shader output layouts. Signed-off-by: Fabian Bieler --- tests/all.py | 1 + .../spec/arb_tessellation_shader/CMakeLists.gl.txt | 1 + .../spec/arb_tessellation_shader/get-tcs-params.c | 114 +

[Piglit] [PATCH 03/15] shader_runner: Add tessellation support.

2014-03-24 Thread Fabian Bieler
Add support for tessellation control and tessellation evaluation shaders. Signed-off-by: Fabian Bieler --- tests/shaders/shader_runner.c | 77 +++ 1 file changed, 77 insertions(+) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c

[Piglit] [PATCH 09/15] arb_tessellation_shader: Compile test for simple shaders.

2014-03-24 Thread Fabian Bieler
Signed-off-by: Fabian Bieler --- tests/spec/arb_tessellation_shader/compiler/sanity.tesc | 16 tests/spec/arb_tessellation_shader/compiler/sanity.tese | 12 2 files changed, 28 insertions(+) create mode 100644 tests/spec/arb_tessellation_shader/compiler/sanity.tesc

[Piglit] [PATCH 13/15] arb_tessellation_shader: Negative test valid range of PATCH_VERTICES.

2014-03-24 Thread Fabian Bieler
From the ARB_tessellation_shader spec (Errors section): "The error INVALID_VALUE is generated by PatchParameteri if is PATCH_VERTICES and is less than or equal to zero or is greater than the implementation-dependent maximum patch size." Signed-off-by: Fabian Bieler --- tests/al

[Piglit] [PATCH 06/15] arb_tessellation_shader: Test evaluation layout getters.

2014-03-24 Thread Fabian Bieler
Use glGetProgramiv() to test tessellation evaluation shader input layouts. Both explicitly specified layouts as well as default layouts are tested. Signed-off-by: Fabian Bieler --- tests/all.py | 1 + .../spec/arb_tessellation_shader/CMakeLists.gl.txt |

[Piglit] [PATCH 05/15] arb_tessellation_shader: Test GL limits and default state.

2014-03-24 Thread Fabian Bieler
Use glGet*v() to test GL limits and default state introduced by arb_tessellation_shader. Signed-off-by: Fabian Bieler --- tests/all.py | 5 + tests/spec/CMakeLists.txt | 1 + .../spec/arb_tessellation_shader/CMakeLists.gl.txt |

[Piglit] [PATCH 02/15] glslparsertest: Support tessellation shaders.

2014-03-24 Thread Fabian Bieler
Signed-off-by: Fabian Bieler --- framework/glsl_parser_test.py | 11 ++- tests/glslparsertest/glslparsertest.c | 21 - 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/framework/glsl_parser_test.py b/framework/glsl_parser_test.py index 82292b5..d

[Piglit] [PATCH 04/15] shader_runner: Support setting of patch parameters.

2014-03-24 Thread Fabian Bieler
Add patch parameter directive to set GL_PATCH_VERTICES, GL_PATCH_DEFAULT_OUTER_LEVEL and GL_PATCH_DEFAULT_INNER_LEVEL. e.g.: patch parameter vertices 4 patch parameter default level outer 1.5 2.0 2.5 3.5 patch parameter default level inner 0.0 0.0 Signed-off-by: Fabian Bieler --- tests/shaders/

Re: [Piglit] [PATCH] primitive-restart-draw-mode: fix failures caused by precision issues

2014-03-24 Thread Brian Paul
Reviewed-by: Brian Paul On 03/22/2014 12:20 PM, Marek Olšák wrote: From: Marek Olšák Instead of offsetting the vertex position for the second half of the screen, setup both halves as separate viewports. --- tests/general/primitive-restart-draw-mode.c | 10 -- 1 file changed, 8 inse

[Piglit] [PATCH] ARB_explicit_uniform_location: test struct with explicit location

2014-03-24 Thread Tapani Pälli
Test has a structure with explicit location, all its elements should get sequential locations as specified. Signed-off-by: Tapani Pälli --- tests/all.py | 1 + .../CMakeLists.gl.txt | 1 + .../struct-elements.c

Re: [Piglit] [PATCH] ARB_explicit_uniform_location: test inactive uniform interaction

2014-03-24 Thread Petri Latvala
On 03/24/2014 12:52 PM, Tapani Pälli wrote: Test has a shader with only one uniform which is not used. Test checks that uniform gets its defined explicit location and that there are no errors generated when glUniform is called to update its value. Test test does not pass with GTX 660 running the

[Piglit] [PATCH] ARB_explicit_uniform_location: test inactive uniform interaction

2014-03-24 Thread Tapani Pälli
Test has a shader with only one uniform which is not used. Test checks that uniform gets its defined explicit location and that there are no errors generated when glUniform is called to update its value. Test test does not pass with GTX 660 running the Nvidia proprietary driver for Linux version 3

[Piglit] [PATCH] ARB_explicit_uniform_location: inactive uniform test

2014-03-24 Thread Tapani Pälli
Hi; I'm currently implementing support for inactive uniforms with explicit lcoation set for glGetUniformLocation and glUniform* functions. Following test now passes with my Mesa branch, however it did not pass on Nvidia. Hopefully I'm reading the spec right, I would appreciate comments on this.