egl_khr_create_context: Allow forward-compatible contexts to be rejected

This reworks the test to test whether
	1) forward-compatible contexts can be created, or
	2) the correct error is generated when they can't.

Previously the test did only the first and would fail if
forward-compatible contexts couldn't be created.
egl_khr_create_context: Brown bag fixes

Namely, don't print anything if the test passes, otherwise this is
interpreted as a warning, as would happen if GLES2 wasn't available;
and EGL_BAD_MATCH is generated if forward-compatible contexts aren't
supported, not EGL_BAD_ATTRIBUTE.
egl_khr_create_context: add extension #defines to common.h

To allow building when the system's eglext.h isn't new enough.
copyteximage: loosen the tolerance for compressed formats

6 bits is enough for the test to pass with the VMware svga driver.
Marek said that 5 bits allows the r300g driver to pass.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
texturing: add full "round trip" test of array depth textures.

This test provokes a bug in Mesa as of 8/23/12 (commit 1cb07bd): when
fast depth clears are performed on multiple layers of a multilayer
depth texture (such as a 2D array or a cubemap texture), the
implementation doesn't properly track the need for depth resolves,
resulting in incorrect data when the texture is later used for
texturing.  See https://bugs.freedesktop.org/show_bug.cgi?id=50270.

Although the bug was initially discovered using cubemap textures, this
test provokes it using a 2D array texture, so that we don't have to
reason about the coordinate transformations involved in cube map
texture lookup.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
egl-util: Add call to piglit_dispatch_default_init()

Fixes egl-nok-swap-region and makes egl-nok-texture-from-pixmap not
crash (but still fails).

Reviewed-by: Paul Berry <stereotype441@gmail.com>
tex3d-depth1: test that a 3D texture w/ depth=1 works properly

Reviewed-by: José Fonseca <jfonseca@vmware.com>
fbo-generatemipmap-formats: increase tolerance for compressed formats

Reviewed-by: Brian Paul <brianp@vmware.com>
uniform-initializer tests: fix GLSL version of uint tests

Reviewed-by: Brian Paul <brianp@vmware.com>
all.tests: move tests from the mesa group into spec
Remove multiple shader files per section facility from shader_runner.

This is part of the effort to make version handling more flexible for GLES.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
Convert all glutSwapBuffers to piglit_present_results

V2: Don't break tests/general/read-front

Reviewed-by: Paul Berry <stereotype441@gmail.com>
Tidy glsl-arb-fragment-coord-conventions

V2: split whitespace from non-whitespace changes
convert version check to piglit_require_gl_version
Never call glutKeyboardFunc in -auto mode
Get rid of reshape funcs

Converts most of the custom reshape funcs to set the projection
in either piglit_init or piglit_display, depending on whether
it depends on the size.
Fix bogus texture name used in fp-kil

fp-kil assumed that `1` was an unused texture name. This isn't
true if running with -fbo, so use glGenTextures to get a name
that's really unused.

Also fixed a bogus comment.
Convert some raw glReadPixels to use piglit probes

V2: don't introduce bogus indentation; use real bools