arb_internalformat_query: Add initial API error test for this extension

This test passes on NVIDIA's closed-source driver (version 304.64 on
GTX 260).  This driver supports GL_ARB_texture_multisample, but it
does not support GL_ARB_internalformat_query2.

This test fails on AMD's closed-source driver (Catalyst 12.6 on HD
3650).  It appears that none of the queries of
GL_ARB_internalformat_query2 enums generate errors even though that
extension is not supported.  This driver supports
GL_ARB_texture_multisample, but it does not support
GL_ARB_internalformat_query2.

There is some debate about whether the {RED,RG,RGB,RGBA}_SNORM formats
should be allowed or not.  The spec seems to indicate that they are
valid, but no implementation other than Mesa actually allows them.
There is a bug open against the OpenGL spec for this issue.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
arb_internalformat_query: Verify glGetInternalformativ doesn't over-run the buffer

This test passes on NVIDIA's closed-source driver (version 304.64 on
GTX 260).

This test fails on AMD's closed-source driver (Catalyst 12.6 on HD
3650).  Queries of GL_NUM_SAMPLE_COUNTS merrily write data even when
bufSize is zero.

v2: Add some comments describing the non-obvious test method.  Use a
fixed sentinal value instead of inverting a previous result.  Require
compat version 3.0.  Based on review comments from Eric Anholt.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
arb_internalformat_query: Verify minimum maximums

This test passes on NVIDIA's closed-source driver (version 304.64 on
GTX260).  This driver supports GL_ARB_texture_multisample.

This test fails on AMD's closed-source driver (Catalyst 12.6 on HD
3650).  Querying GL_SRGB8_ALPHA8 (for all targets) returns {1, 0, 2}.
This is invalid because it is not descending order, and zero is not
positive.  I suspect they intended to return 1 for NUM_SAMPLE_COUNTS,
and {1} for SAMPLES.  This driver supports GL_ARB_texture_multisample.

v2: Delete the ARB_texture_multisample defines.  Recent changes to
enumsext.spec make this unnecessary.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
getteximage-formats: print keyboard usage when not running in auto mode
arb_internalformat_query: move this_test declaration before code

To fix MSVC build.
glean/vertprog1: Initialize VertexProgramTest member variables.

Fixes uninitialized scalar field defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
glean/texunits: Initialize TexUnitsTest member variables.

Fixes uninitialized scalar field defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Test that varyings can't be bools or structs

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Test that varying packing can pack floats, ints, and uints together.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
arb_transform_feedback2: Add IsTranformFeedback() test
arb_vertex_array_object: Add IsVertexArray() test
apple_vertex_array_object: Add IsVertexArray() test
gles3: use _${piglit_target_api} for testcase names

Use _${piglit_target_api} as the suffix of testcase binaries to
to be consistant across piglit as suggested by Chad Versace.

Signed-off-by: Tom Gall <tom.gall@linaro.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
WIP: test 2D array textures
Fixup tests for gles3
WIP
Fixup tests
Fixup tests more
More cleanup
More fixups