Re: [Piglit] Testing against undefined behaviour in asmparsertest/shaders/ARBvp1.0/address-06

2013-06-10 Thread Marek Olšák
If I'm reading the grammar correctly, the constant offset must be in the range [-64, 63]: addrRegRelOffset ::= | + addrRegPosOffset | - addrRegNegOffset addrRegPosOffset ::= integer from 0 to 63 addrRegNegOffset

Re: [Piglit] Testing against undefined behaviour in asmparsertest/shaders/ARBvp1.0/address-06

2013-06-10 Thread Martin Andersson
On Mon, Jun 10, 2013 at 1:49 PM, Marek Olšák mar...@gmail.com wrote: If I'm reading the grammar correctly, the constant offset must be in the range [-64, 63]: addrRegRelOffset ::= | + addrRegPosOffset | - addrRegNegOffset

[Piglit] [PATCH] new test: glx-multithread-texture.

2013-06-10 Thread Frank Henigman
New test for loading texture data from one thread and context while drawing with those textures from another thread and shared context. The threads are synchronized so they do not attempt to use the same texture at the same time. Signed-off-by: Frank Henigman fjhenig...@google.com ---

[Piglit] [PATCH 02/18] shader_runner: Allow new drawing modes.

2013-06-10 Thread Fabian Bieler
Add primitives with adjacency and (for extreme future-proofness) patches to recognized drawing modes. --- tests/shaders/shader_runner.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 515fde1..e022b90

[Piglit] [PATCH 03/18] util: Draw rectangles using triangle strips instead of quads.

2013-06-10 Thread Fabian Bieler
This is usefull for core profile OpenGL contexts and geometry shaders. --- tests/util/piglit-util-gl.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index 0a56582..04c36bb 100644 ---

[Piglit] [PATCH 05/18] arb_geometry_shader4: Test valid input primitives.

2013-06-10 Thread Fabian Bieler
Test that glProgramParameter() triggers the required errors. The geometry shader input primitive type is limited to a subset of OpenGL primitive types. From the ARB_geometry_shader4 spec (section Errors): The error INVALID_VALUE is generated by ProgramParameteriARB if pname is

[Piglit] [PATCH 01/18] shader_runner: Use piglit_heigth for framebuffer height.

2013-06-10 Thread Fabian Bieler
It used to be piglit_width which works, too, as the framebuffer is hardcoded to 250x250 pixels. --- tests/shaders/shader_runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 7fc74aa..515fde1 100644 ---

[Piglit] [PATCH 06/18] arb_geometry_shader4: Test valid output primitives.

2013-06-10 Thread Fabian Bieler
Test that glProgramParameter() triggers the required errors. The geometry shader output primitive type is limited to a subset of OpenGL primitive types. From the ARB_geometry_shader4 spec (section Errors): The error INVALID_VALUE is generated by ProgramParameteriARB if pname is

[Piglit] [PATCH 13/18] arb_geometry_shader4: Test geometry shader that doesn't generate any primitives.

2013-06-10 Thread Fabian Bieler
--- .../execution/generate-zero-primitives.shader_test | 55 ++ 1 file changed, 55 insertions(+) create mode 100644 tests/spec/arb_geometry_shader4/execution/generate-zero-primitives.shader_test diff --git

[Piglit] [PATCH 07/18] arb_geometry_shader4: Test valid vertices out count.

2013-06-10 Thread Fabian Bieler
Test that glProgramParameter() triggers the required errors. The value of GEOMETRY_VERTICES_OUT is limited by the implementation dependend constants MAX_GEOMETRY_OUTPUT_VERTICES and MAX_VERTEX_VARYING_COMPONENTS. From the ARB_geometry_shader4 spec (section Errors): The error INVALID_VALUE is

[Piglit] [PATCH 09/18] arb_geometry_shader4: Link without vertex shader.

2013-06-10 Thread Fabian Bieler
Test that linking fails without vertex shader present. ARB_geometry_shader4 spec 2.15.2: Linking will also fail if the program object contains objects to form a geometry shader (see section 2.16), but no objects to form a vertex shader --- .../linker/no-vertex-shader.shader_test| 32

[Piglit] [PATCH 10/18] arb_geometry_shader4: Test input overrun.

2013-06-10 Thread Fabian Bieler
Test that linking fails if the geometry shader accesses more components than are available. ARB_geometry_shader4 spec 2.16.1: However, a program object, containing a shader object that access more input vertices than are available for the input primitive type of the program object, will not link.

[Piglit] [PATCH 11/18] arb_geometry_shader4: Test indexing geometry shader input arrays.

2013-06-10 Thread Fabian Bieler
All geometry shader input varyings are arrays. Array varyings are two-dimensional arrays. Test indexing of scalar, vector and matrix varyings. --- .../arb_geometry_shader4/compiler/array-index.geom | 35 ++ 1 file changed, 35 insertions(+) create mode 100644

[Piglit] [PATCH 15/18] arb_geometry_shader4: Add basic 2d array tests.

2013-06-10 Thread Fabian Bieler
Test basic indexing operations with 2d arrays. --- .../arb_geometry_shader4/compiler/2darray01.geom | 63 +++ .../linker/2darray01.shader_test | 70 ++ 2 files changed, 133 insertions(+) create mode 100644

[Piglit] [PATCH 18/18] arb_geometry_shader4: Test that gl_VerticesIn is const.

2013-06-10 Thread Fabian Bieler
Test that gl_VerticesIn can be used as a valid constant expression. Also test that it evaluates to 3 for triangles. --- .../compiler/verticesin-const-expression.geom | 31 .../compiler/verticesin-const.geom | 31 .../linker/verticesin-const.shader_test

[Piglit] [PATCH 16/18] arb_geometry_shader4: Add further 2d array tests.

2013-06-10 Thread Fabian Bieler
Add some tests that basically check that the compiler doesn't confuse the two array dimensions. --- .../arb_geometry_shader4/compiler/2darray02.geom | 29 .../arb_geometry_shader4/compiler/2darray03.geom | 29 .../arb_geometry_shader4/compiler/2darray04.geom | 30

[Piglit] [PATCH 17/18] arb_geometry_shader4: Test gl_TexCoordIn indexing.

2013-06-10 Thread Fabian Bieler
From the ARB_geometry_shader4 spec (section ): Indices used to subscript gl_TexCoord must either be an integral constant expressions, or this array must be re-declared by the shader with a size. And from the GLSL 1.1 spec page 99 (page 105 of the PDF): Multiple modules can declare it

Re: [Piglit] [PATCH 02/18] shader_runner: Allow new drawing modes.

2013-06-10 Thread Eric Anholt
Fabian Bieler fabianbie...@fastmail.fm writes: Add primitives with adjacency and (for extreme future-proofness) patches to recognized drawing modes. --- tests/shaders/shader_runner.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/shaders/shader_runner.c