util: Move piglit-util to piglit-util-gl-common

Move piglit-util.* to piglit-util-gl-common.*

Signed-off-by: Blaž Tomažič <blaz.tomazic@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
util: Move API-independent code to piglit-util

Move API-independent code from piglit-util-gl-common.c and
piglit-util-gl-common.h to piglit-util.c and piglit-util.h respectively.

Signed-off-by: Blaž Tomažič <blaz.tomazic@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
util: Rename piglit-util-enum.c

Rename piglit-util-enum.c to piglit-util-gl-enum.c.

Signed-off-by: Blaž Tomažič <blaz.tomazic@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
util: Move file reading function to piglit-util

Move function for reading files from shader-load.c to piglit-util.c.
Delete shader-load.c because it had no other functionality.

Signed-off-by: Blaž Tomažič <blaz.tomazic@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
cmake: Move piglitutil library to piglitutil_gl

Build gl utilities to piglitutil_gl library insted of piglitutil.

As a result all executables linking to piglitutil library now link to
piglitutil_gl.

Signed-off-by: Blaž Tomažič <blaz.tomazic@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
cmake: Build API-independent piglitutil library

Build API-independent utilities to piglitutil library and link all other
utility libraries to it (gl, gles1, gles2).

Signed-off-by: Blaž Tomažič <blaz.tomazic@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
security/initialized-texmemory - test contents of unitialized texture memory

This is the first of a new category of piglit tests that exercise
things related to security.

The first test, initialized-texmemory, creates a texture image with
unspecified contents (pixels=NULL).  We draw a polygon with the texture
and see what we get.  Ideally, we'd get a constant/black image and not
some random VRAM data from another application or another user (like a
window image).  The OpenGL spec doesn't say that texture memory should
be initialized in this situation so if the test fails we return "WARN"
rather than "FAIL".

Reviewed-by: José Fonseca <jfonseca@vmware.com>
security/initialized-fbo: test contents of uninitialized renderbuffers

Reviewed-by: José Fonseca <jfonseca@vmware.com>
security/initialized-vbo: test contents of uninitialized VBOs

Reviewed-by: José Fonseca <jfonseca@vmware.com>
security: fix build breakage from recent infrastructure changes
depthstencil-render-miplevels: remove stray semicolon
depthstencil-render-miplevels: check GL_ARB_depth_texture_extension

The test was trying to create GL_DEPTH_COMPONENT32F and
GL_DEPTH32F_STENCIL8 textures without checking if GL_ARB_depth_buffer_float
is supported.  If it's not supported, return PIGLIT_SKIP.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
util: Add include guards in piglit-framework.h.

Solaris Studio does not support "#pragma once".

Fixes piglit-framework build error with Solaris Studio.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
time-elapsed: test GL_TIMESTAMP query

FYI, this test randomly fails when run in parallel with other tests regardless
of the query type.
timestamp-get: test glGet(GL_TIMESTAMP)

v2: warning fixes by Brian Paul

Reviewed-by: Brian Paul <brianp@vmware.com>
msaa: Test that glClear() ignores multisample fragment operations.
Get rid of unnecessary funcs
Stop using transform feedback wrapper functions