CL: Add int* vload*(constant/local/private) tests

Only tests integer loads, and assumes that global vstore works correctly.

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
glsl-1.50 compiler: Test that gl_FragCoord redeclaration recognized by compiler

V2: adjusted format and comments for consistency and embarassing typo
GL 3.2: Test for INVALID_ENUM when DrawBuffers() is passed incorrect color buffers

Reviewed-by: Paul Berry <stereotype441@gmail.com>
GL 3.2: Test that Clear() clears no buffers when passed a value of 0

Reviewed-by: Paul Berry <stereotype441@gmail.com>
GL 3.2: Add test for minimum value of MAJOR_VERSION

Reviewed-by: Paul Berry <stereotype441@gmail.com>
Add draw-buffers-errors and clear-no-buffers to all.tests
arb_shading_language_420pack: Don't use const with out or inout parameters

The GLSL 4.40 spec still says:

    "The const qualifier cannot be used with out or inout, or a
    compile-time error results."

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
gs: Test that geometry shader inputs must be arrays.

v2: Additional tests.
gs: Test that geometry shader input declaration rules don't apply to outputs.
shader_runner: Add the ability to enable GL_PROGRAM_POINT_SIZE.
shader_runner: Remove useless "TODO" comment.

I introduced this comment back in commit f9d224d0 (Add vbo support to
shader_runner), and I don't remember what I meant by it.
shader_runner: Allow "draw arrays" if no [vertex data] section.

For some geometry shader tests, there's no need for any vertex shader
inputs at all--the geometry shader produces all the data itself.  To
allow tests like these, we need to be able to issue a "draw arrays"
command with any number of input vertices, even if there is no [vertex
data] section.

This patch disables shader_runner's "draw arrays" overflow checks in
the event that there is no [vertex data] section, so that the "draw
arrays" command can be used.  This is safe, since the lack of a
[vertex data] section means that no vertex attrib arrays are enabled,
so the shader won't try to access the vertex input data at all.
gs: Test gl_PointSize output.
gs: Test gl_ClipDistance output.
gs: Test gl_PrimitiveID output.
gs: Test EndPrimitive() functionality.
gs: Test primitive ID input.
Add PIGLIT_FORCE_WINDOW environment variable.

Setting PIGLIT_FORCE_WINDOW=1 causes all piglit windowsystem tests
(those that weren't invoked with the "-fbo" flag) to show the window
prior to calling piglit_display().  Setting PIGLIT_FORCE_WINDOW=0 (the
default) preserves piglit's existing behaviour, which is to only show
the window when the test is run in "manual" mode (with no "-auto"
argument supplied).

Setting PIGLIT_FORCE_WINDOW=1 slows down the piglit run, and produces
more annoying windows on the screen, but it has been observed to
produce more repeatable results when testing with the nVidia
proprietary driver for Linux.
Add PIGLIT_STRIP_ARG() macro for extracting args during piglit config.

v2: Fix update of *argc.
Use PIGLIT_STRIP_ARG() in formats.c