ARB_seamless_cube_map: test that sample from three faces returns value without border color

add new test to existing arb_seamless_cube_map group: sample three adjoining
     faces and use average. if three faces are the same color, that color must
     be used.
add test to makelists and all.tests

V2 : test now uses contemporary pipeline
Move visualize_image function to util/piglit-util-gl.c

This function might be useful to develop new piglit test cases.

Signed-off-by: Anuj Phogat<anuj.phogat@gmail.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Add utility functions to convert a color value to srgb or linear color space

Signed-off-by: Anuj Phogat<anuj.phogat@gmail.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Use utility function piglit_srgb_to_linear()

Signed-off-by: Anuj Phogat<anuj.phogat@gmail.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Add new test for MRT alpha test

This test exercises alpha test with multiple render targets. This is one
part of FDO #67864.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
glsl-1.50: Remove gl_Position from fragment shader.

This must've been cut and pasted from a vertex shader by accident.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Cc: Nicholas Mack <nichmack@gmail.com>
glsl-3.30: Add a test for __VERSION__ == 330.

This is copy and pasted from glsl-1.50/compiler/version-macro.frag with
the version changed.

Since this is the first test for GLSL 3.30, this patch also hooks up the
directory so all.tests scans it for parsertests and shader runner tests.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
glsl-3.30: Port the profile tests forward.

These are the tests from glsl-1.50/compiler/profiles with the version
numbers changed.  It seemed worth testing for 3.30 as well.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
gs: Test that geometry shader inputs must be arrays.

v2: Additional tests.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
gs: Test that geometry shader input declaration rules don't apply to outputs.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
gs: Test EndPrimitive() functionality.

v2: Use glViewport to draw the two images to separate parts of the
window, rather than drawing each in an fbo and then blitting.
gs: test all input primitive types.

Verified using the NVIDIA proprietary driver for Linux.
!UPSTREAM: Test core GS inputs on GLSL 1.50

TODO:
- Make this work.