util/gl: Define GL_GLEXT_PROTOTYPES for all GLES1 tests

If you're writing test, you want the extension prototypes defined. Each
GLES1 test shouldn't need to define this.

To fix this, define GL_GLEXT_PROTOTYPES in gl_wrap.h. This makes
Piglit's behavior for GLES1 more closely match its behavior for
GL/GLES2/GLES3.  because gl_wrap.h *does* define the extension
prototypes for the non-GLES1 apis.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
util/egl: Include eglext.h from piglit-util-egl.h

If you're writing an EGL test, you likely want access to the extensions.

This makes piglit-util-egl.h's behavior match that of
piglit-util-gl-common.h, which defines (transitively through
gl_wrap.h) all the GL/GLES extensions.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
util: Move EGL utilities from libpiglitutil_gl to libpiglitutil

Many EGL tests make no GL calls. This is one step towards enabling those
tests on platforms having OpenGL ES but not OpenGL.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
egl: Fix CMake traversal into egl/spec dir

CMake should traverse into subdirectories independent of the current
OpenGL. That is, the generic CMakeLists.txt should call
add_subdirectory(xxx), not the api-specific CMakeLists.$api.txt.  For
precedent, see tests/spec/CMakeLists.txt.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
util: Add piglit_split_string_to_array()

This splits a string into an array of strings, which is useful for
splitting the string returned by eglQueryString(EGL_EXTENSIONS).

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
egl_ext_client_extensions: Add initial tests

Add tests for the conformance tests listed in the
EGL_EXT_client_extensions spec.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>