Re-import the current gl.spec files, unmodified.
Import the current enum.spec file.

This will replace the use of enumext.spec, adding support for GLES
extensions without us having to manually add them to the file.
Import the current GLES2/3 core/extension headers.

This will be used in upcoming piglit-dispatch generation for GLES2/3,
since there's no corresponding gl.spec file for them.
Merge branch 'glspec-upstream' into master

This manually preserves the local changes we've had in gl.spec.  By
committing upstream versions to glspec-upstream and merging it to
master in the future, nobody should have to hand-resolve changes
unless Khronos changes those specific extensions.

The one new change here is the addition of GLfixed to
piglit-dispatch.h, to support new OES extensions.
Merge branch 'merge-glspec' into HEAD
triangle-rasterization: Add multiple possible filling conventions.

The OpenGL specification doesn't guarantee a particular filling convention.
Indeed, the filling convention isn't even required to be consistent.

The only requirements are:
    The rasterization has to be invariant under pixel translation.

    If two triangles share two vertices with the common edge on a fragment
    center and the respective third vertices on either side of that edge,
    exactly one triangle produces the fragment.

Note that with this patch the test is still to strict in that it requires a
single consistent filling convention.
sparse-samplers: Increase precision of expected color.

The expected green and blue channels at the probed pixel are 0.51. with the
previous approximated value of 0.5 and the default absolute piglit tolerance of
0.01 the expected value was on the edge of the tolerated range.
rendermode-feedback: Simple test of glFeedbackBuffer() types.

We had no testing of this in piglit at all, so I wrote this in the
process of debugging:

https://bugs.freedesktop.org/show_bug.cgi?id=34154

v2: Rebase to master, move to GL 1.0 test group.
gl-3.1: Add testing for updated required sized texture formats.

v2: Rebase to master, make it work on core contexts, and add a few
    formats I'd missed when writing the table originally.
gl-3.3, 4.2: Add testing for required sized formats.
gl-3.2: Add testing for the minimum maximums.

v2: Drop explicit window size, extra version checking.
gl-3.3: Add testing for the minimum maximums.

v2: Drop explicit window size, extra version checking.
Extend required-renderbuffer-attachment-formats to GL 3.1, 3.3, and 4.2.
Extend required-texture-attachment-formats to GL 3.1, 3.3, and 4.2.
junit: Escape invalid XML unicode characters.

This prevents Jenkins from choking on the generate XML report when there
are garbage (control) characters in the output from messages like

  ir_dereference_variable @ ... specifies undeclared variable `...`
Revert "array-size-sequence-in-parenthesis: Invert expected result."

This reverts commit f95d4e382ac15488f256f4bd85237f9dbbf5038c.

The original behavior of the test was correct as pointed out by Ian Romanick.
Add one test case for OpenCL's switch cause

Add a "switch case" test kernel for OpenCL

Reviewed-By: Aaron Watry <awatry@gmail.com>
Signed-off-by: Junyan He <junyan.he@linux.intel.com>
util: Don't call exit() after piglit_report_result() [v2]

Any call to exit() that follows piglit_report_result() is nothing more
than confusing dead code.  piglit_report_result() already calls exit(),
and chooses the exit code according to the PIGLIT_$RESULT value.

v2: Remove more calls to exit, found by Ian.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
glsl-1.10: Test if arrays of samplers can be passed as function parameters.

Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
glsl-1.10: Test if samplers in nested structs can be passed as function parameters.

Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>