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>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Tidy glsl-arb-fragment-coord-conventions

V2: split whitespace from non-whitespace changes

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
convert version check to piglit_require_gl_version

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Never call glutKeyboardFunc in -auto mode

Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
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.

V2: dont introduce unrelated projection changes

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
tests/texturing: clean some whitespace

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
fp-kil: Fix bogus texture name

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.

V2: use correct type

Reviewed-by: Paul Berry <stereotype441@gmail.com>
Convert some raw glReadPixels to use piglit probes

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

Reviewed-by: Paul Berry <stereotype441@gmail.com>
tests: Remove all uses of glutGet

I'm trying to transition Piglit from using GLUT to using Waffle. This
requires killing all uses of GLUT functions, one-by-one.

glutGet was only used in one test: fp-fragment-position.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
glut_waffle: Remove unused code

I created glut_waffle by forking Piglit's (now extinct) glut_egl. Much of
the code that glut_waffle inherited from glut_egl has never been used.
This patch kills it.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
glut_waffle: Refactor some code into common.[ch]

This is in preparation for adding support for input to glut_waffle. Input
for each platform (X11, Wayland, etc) will be implemented in a separate
file. This patch moves common code needed for each platform from
glut_waffle.c into common.[ch].

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
cmake: If using Waffle, require version 1.0.1

A following patch adds support for X11 input to glut_waffle.
waffle-1.0.1 contains required bugfixes for that patch to work.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
glut_waffle: Add input support for X11 [v2]

Add support for input when using glut_waffle's GLX and
X11/EGL backends. Tested with fbo-clean-formats; I cycled through the
tests with the keyboard and then quit with the escape key.

v2:
    - Rewrite x11_event_loop() without continue, per brianp.
    - Remove spurious waffle_window_swap_buffers from x11_event_loop.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
max-texture-size-level: test per-level max texture size error checking