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.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
gles2: Remove unnecessary include of EGL/egl.h

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
gles-3.00: Fix various errors in varying-struct-centroid test

This test has obviously been broken since 2d69390, which I alegedly
reviewed.  The name of the vertex shader input was changed from vertex
to piglit_vertex, but none of the references in the shader were changed.

Also, the default float precision qualifier was missing in the fragment
shader. *shock*

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
gles-3.0: Add missing default precision qualifiers

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
ARB_shading_language_packing: Add missing default precision qualifiers

Only the ES shaders needed default precision qualifiers, so all of
them are guarded by #ifdef GL_ES.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Cc: Paul Berry <stereotype441@gmail.com>
ext_unpack_subimage/basic: Add missing precision qualifiers

Did this test previously pass on any "strict" implementations (not
NVIDIA)?

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Cc: Neil Roberts <neil@linux.intel.com>
ext_unpack_subimage/basic: Use piglit_check_gl_error

The test had basically implemented its own version of the function.
Just use the common one.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Cc: Neil Roberts <neil@linux.intel.com>
ext_unpack_subimage/basic: Remove unnecessary include of EGL/egl.h

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Cc: Neil Roberts <neil@linux.intel.com>
arb_gpu_shader5: Add frexp fragment shader execution test.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
arb_gpu_shader5: Add frexp vertex shader execution test.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
arb_gpu_shader5: Add ldexp fragment shader execution test.

Reviewed-by: Paul Berry <stereotype441@gmail.com>