CL: Fix illegal character in scalar-arithmatic-short test name

'%' is not allowed.  Use 'mod' instead.

Signed-off-by: Aaron Watry <awatry@gmail.com>
CL: Fix other-data-types image tests

These were throwing errors (windows, catalyst, clc 1.2) because image
data types are not allowed to be declared within a kernel, only as
kernel parameters.

Re-structure the test so that we always test event_t, and progressively
check the additional types that are supported based on the declared CLC
version and image support declaration.

Signed-off-by: Aaron Watry <awatry@gmail.com>
CL: Fix scalar-data-types double test

We were declaring variable 'd' twice on subsequent lines.

Noticed and tested on windows catalyst (pitcairn) w/ CL 1.2.

Signed-off-by: Aaron Watry <awatry@gmail.com>
cl: Add build test for -D GENTYPE=int
cl/api/build-program: Add a test with an empty program
cl-program-tester: Initialize piglit_result to PIGLIT_SKIP

We were initializing it PIGLIT_PASS which meant that 'skipped' tests were
being reported as 'pass'.

Reviewed-by: Aaron Watry <awatry@gmail.com>
cl-program-tester: Skip tests if devices don't support the local work size

Reviewed-by: Aaron Watry <awatry@gmail.com>
cl: Add local memory test

Reviewed-by: Aaron Watry <awatry@gmail.com>
Expect ARB_texture_cube_map_array/compiler/tex_bias-01.vert to fail.

Bias makes no sense in a vertex shader, as there's no implicitly
computed LOD to add a bias to.  According to the GLSL 4.30 spec, "In all
functions below, the bias parameter is optional for fragment shaders.
The bias parameter is not accepted in any other shader."  1.30 has
similar text disallowing bias in vertex shaders.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
!UPSTREAM: Performance micro-benchmark for fast color clears.
util: Create generic piglit_draw_rect() functions.  TODO: rework.

This patch adds the following functions to piglit-util-gl-common:
- piglit_draw_rect_generic
- piglit_draw_rect_back_generic
- piglit_draw_rect_z_generic
- piglit_draw_rect_tex_generic

These functions are similar to corresponding functions without the
"_generic" suffix, except that instead of delivering vertex position
and texture coordinates to the vertex shader using glVertexPointer()
and glTexCoordPointer(), they deliver to the generic attributes
PIGLIT_ATTRIB_POS and PIGLIT_ATTRIB_TEX.  These functions use VBO's
and VAO's when available, so they may be used when testing core
contexts.

These functions also work with compatibility contexts and with all
GLES versions.  Since GLES1 doesn't support generic vertex attributes,
we fall back to using glVertexPointer() and glTexCoordPointer() in the
GLES1 case.

When building GLES tests, the behaviour of the new _generic functions
is for all intents and purposes the same as that of the pre-existing
non-generic functions.  So to avoid code duplication, the non-generic
functions simply call their generic equivalents in GLES builds.
WIP: start testing GS in/out types
WIP: fix shader_runner error reporting when vertex data included.
WIP: Basic test of GS input varyings
Geometry shaders: add a basic EndPrimitive() test.
WIP: large EndPrimitive test
shader_runner: Add missing newlines to error messages.

Certain shader error messages were missing newlines, leading to the
error message being concatenated on the same line with "PIGLIT:
{'result': 'fail' }".
!UPSTREAM: Start working on a function accuracy test
!UPSTREAM: more experimentation with function accuracy
!UPSTREAM: read-after-swap

This works but I'm not convinced it's a good idea yet.

TODO:
- Discuss on mailing list.