Test that loop unrolling properly infers loop bounds.

This patch introduces new vs and fs tests to provoke a bug in Mesa
which caused loop bounds to be inferred incorrectly when the loop
condition was expressed in an unusual way (e.g. "4 > i" instead of "i
< 4").

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
util: Add functions that provide glOrtho-like functionality.

This patch adds functions piglit_gen_ortho_uniform() and
piglit_ortho_uniform(), which can be used to set up an orthographic
projection when the legacy function glOrtho() is not available.

The functions work exactly like piglit_gen_ortho_projection() and
piglit_ortho_projection(), except that instead of programming the
legacy projection matrix, they program an arbitrary uniform matrix.

Reviewed-by: Brian Paul <brianp@vmware.com>
util: Add compressed representations of grayscale images.

This patch adds compressed representations of uniform grayscale blocks
to piglit, in the ETC1 and FXT1 compression formats.  Although they
don't exercise the full capabilities of these compression formats,
they should be sufficient to create basic tests of compression
functionality without having to rely on the GL implementation to do
compression on the fly.

Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Eric Anholt <eric@anholt.net>

v2: Add S3TC.
Add tests for glCompressedTex{Image,SubImage}3D().

Reviewed-by: Brian Paul <brianp@vmware.com>

v2: Switch the desktop GL test to use S3TC so that the test can run on
a greater variety of hardware.  Use piglit_probe_rgba to be compatible
with GLES3's glReadPixels restrictions.
arb_uniform_buffer_object: Add new tests for GL_MAX_UNIFORM_BLOCK_SIZE.
depth-cube-map: Fix for airlied's reordering of cube_face_texcoords.

While I'm here, also change which faces are expected where on the
screen.  Before it was expecting:

-Y +Z -Z
+X -X +Y

But I think this makes more sense:

-X -Y -Z
+X +Y +Z
bindfragdata-link-error: Fix WARN report for a PIGLIT_PASS result.

By using the complain-loadly-if-link-error util function in the cases
where we expect a link error, we ensured that this test could never
report a pass in the summary.
gles2: add invalid-es3-queries_gles2 to all.tests

Also changes invalid-es3-quesies to follow conventions and be
built as invalid-es3-queries_gles2

Signed-off-by: Tom Gall <tom.gall@linaro.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
gles2: add minmax testcase

Add minmax test based on values that can be queried as specified
in chapter 6.2 of the OpenGL ES 2.0.25 spec.

Small modification to tests/util/minmax-test.* so that functions
which use GLint64 and GLuint64 types aren't compiled when
building for OpenGL ES 2.

Signed-off-by: Tom Gall <tom.gall@linaro.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Add glsl-render-after-bad-attach to build and all.tests

This test was added back in April (b859d0c) but was never added to the
build or all.tests.
WIP: basic varying struct test