gles3: Test TEXTURE_IMMUTABLE_LEVELS parameter.

Reviewed-by: Corey Richardson <corey@octayn.net>
arb_texture_view: Test TEXTURE_IMMUTABLE_LEVELS parameter.

... and that TEXTURE_VIEW_NUM_LEVELS is the same as
TEXTURE_IMMUTABLE_LEVELS after glTexStorage.

Reviewed-by: Corey Richardson <corey@octayn.net>
gen_texture_query_lod_tests.py: Put function name in test filename.

Previously GLSL 4.00 tests would get names like sampler1D.frag without
any information that would identify them as textureQueryLod tests.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
gen_texture_query_lod_tests.py: Don't emit #extension if no extensions

The GLSL 4.00 tests previously contained lines like

 #extension : enable

which would have prevented them from working.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
glsl-1.20: Fix the spec quotation

The bit of spec text quoted in the test had nothing to do with what
was being tested.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
glslparsertest: Add complementary shaders to link GLSL ES 3.00 shaders too

Fixes failures in ES3 --check-link tests
default-precision-sampler.frag and default-precision-sampler.vert.  It
also makes "glsl-es-3.00 compiler no-default-float-precision.frag"
correctly fail.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
glsl-1.20: Expect this structure usage to pass

Due to a copy-and-paste mistake, the test that exercises the usage that
the spec says is valid was marked to expect failure.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
arb_texture_view: Link OpenGL libraries.

Fixes MinGW build error.

Linking CXX executable ../../../../../bin/arb_texture_view-texture-immutable-levels.exe
../../util/libpiglitutil_gl.a(piglit-dispatch-init.c.obj): In function `get_ext_proc_address':
tests/util/piglit-dispatch-init.c:80: undefined reference to `__imp_wglGetProcAddress'

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
gs: Verify consistency checking of geometry shader input layouts.

These tests verify that the implementation properly detects mismatches
between geometry shader input layout declarations, whether they occur
within the same compilation unit or within multiple compilation units.

Mismatches that occur within the same compilation unit should produce
a compile error.
gs: Verify intra-shader checking of input layout vs. explicitly sized arrays.

These tests verify that the implementation properly detects mismatches
between a geometry shader input layout declaration and an explicitly
sized geometry shader input array appearing in the same shader (the
size of each input array must match the number of vertices per
primitive implied by the input layout declaration).

v2: Call .length() from inside an array declaration to verify that the
compiler properly treats it as a constant expression.
gs: Verify inter-shader checking of input layout vs. explicitly sized arrays.

These tests verify that the implementation properly detects mismatches
between a geometry shader input layout declaration and an explicitly
sized geometry shader input array appearing in a different shader (the
size of each input array must match the number of vertices per
primitive implied by the input layout declaration).
gs: Verify intra-shader checking of input layout vs. implicitly sized arrays.

These tests verify the following interactions between geometry shader
input layout declarations and implicitly sized geometry shader input
arrays:

- If an input array declaration does not specify a size, and it
  follows an input layout declaration, it is sized according to the
  input layout.

- If an input layout declaration follows an input array declaration
  that didn't specify a size, the input array declaration is given a
  size at the time the input layout declaration appears.  An error
  should be reported if the new size conflicts with previous uses of
  the array.

v2: Call .length() from inside an array declaration to verify that the
compiler properly treats it as a constant expression.  Remove
gs-input-sizing-implied-length.shader_test, since it is redundant with
gs-input-sizing-implied-length.geom.
gs: Verify inter-shader checking of input layout vs. implicitly sized arrays.

These tests verify that unsized geometry shader input arrays in one
compilation unit are properly sized according to a geometry shader
input layout declaration in another compilation unit, and that a link
error occurs if such sizing would conflict with a static usage of the
array.

v2: Remove gs-input-sizing-length-after-layout.shader_test, since it
is redundant with gs-input-sizing-length-after-layout.geom.
gs: Verify consistency checking of explicitly sized input arrays.

These tests verify that the implementation properly detects mismatches
between sized geometry shader input arrays appearing within the same
compilation unit.
gs: Verify checking of sized vs. unsized geometry shader input arrays.

These tests verify that if a single geometry shader compilation unit
contains a declaration of both an unsized and a sized input array, the
presence of the sized input array doesn't cause the unsized array to
acquire a size.
gs: Verify that an error is generated if no input layout is specified.
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.