Add a test of MSAA upsampling.

This test verifies that a non-MSAA framebuffer can be accurately
blitted to an MSAA framebuffer.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Add a test of MSAA-to-MSAA blits.

This test verifies that a simple blit from one MSAA framebuffer to
another work properly.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
framework: Don't create Glean result dir if it's a variable.

I want to be able to get a list of commands being run without specifying
an actual result directory.  So, I'm specifying it as $GLEAN_RESULT_DIR.

In that case, I don't want it to create a literal directory called
$GLEAN_RESULT_DIR.  (The % is for python-style substitutions.)

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Jose Fonseca <jfonseca@vmware.com>
Add a new "piglit-print-commands.py" command.

This prints a list of all the tests and how to run them:

piglit test name ::: /path/to/piglit/bin/program <args>
glean test name ::: PIGLIT_TEST='...' /path/to/piglit/bin/glean -v -v -v ...

This may be of use to our QA team, who currently use their own
infrastructure for running test suites.  Having their runner launch
piglit-run.py, which parses all.tests, for every test case, is
incredibly expensive.

This is not meant to be a long term solution.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Jose Fonseca <jfonseca@vmware.com>
framework: Accelerate generation of test list in all.tests

This improves the speed of both piglit-print-commands.py and
piglit-run.py:

Before:
time ./piglit-print-commands.py -t 'asmparsertest/ARBfp1.0/size_specifier-31.txt' -x 'asmparsertest/ARBfp1.0/size_specifier-31.txt'.+ -x valgrind/ tests/all.tests
asmparsertest/ARBfp1.0/size_specifier-31.txt ::: /GFX/Test/Piglit/piglit/framework/../bin/asmparsertest -auto ARBfp1.0 tests/asmparsertest/shaders/ARBfp1.0/size_specifier-31.txt

real    0m1.171s
user    0m1.132s
sys     0m0.039s

After:
time ./piglit-print-commands.py -t 'asmparsertest/ARBfp1.0/size_specifier-31.txt' -x 'asmparsertest/ARBfp1.0/size_specifier-31.txt'.+ -x valgrind/ tests/all.tests
asmparsertest/ARBfp1.0/size_specifier-31.txt ::: /GFX/Test/Piglit/piglit/framework/../bin/asmparsertest -auto ARBfp1.0 tests/asmparsertest/shaders/ARBfp1.0/size_specifier-31.txt

real    0m0.331s
user    0m0.299s
sys     0m0.031s

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
[chad: Shortened commit subject.]
dlist-color-material: test glMaterial in dlist with glColorMaterial
GL_ARB_uniform_buffer_object: Add compiler tests for misusing UBO layouts.
GL_ARB_uniform_buffer_object: New test for nested UBO declarations.
GL_ARB_uniform_buffer_object: Test more misuse of layout qualifiers.
GL_ARB_uniform_buffer_object: Test that initializers are illegal.
GL_ARB_uniform_buffer_object: Test that samplers are illegal.
GL_ARB_uniform_buffer_object: Test 3 pieces of glGetUniformBlockIndex().
GL_ARB_ubo: Test 2 errors and 1 success case of glGetUniformIndices().
GL_ARB_ubo: New test for glGetUniformLocation() on a UBO.
GL_ARB_uniform_buffer_object/layout-std140: Fix bug in debug output.

I transposed these two fields, and the nv implementation I was testing
against doesn't produce inactive uniform in UBOs under any
circumstances.
fs-discard-exit-3: New test for another bug in handling 1.30's discard rule.
Test rendering to various miplevels of depth and stencil textures.

This patch adds a new test, "depthstencil-render-miplevels", which
verifies that we can render to all miplevels of depth and stencil
textures.  It exposes two bugs in Mesa's current i965 driver:

- Miptree offsets aren't being calculated correctly for HiZ and
  separate stencil buffers, causing miplevels to overlap in those
  buffers.

- When binding the same texture to the GL_DEPTH_ATTACHMENT and
  GL_STENCIL_ATTACHMENT points, Mesa is trying to share internal data
  structures even if the miplevels don't match; as a result,
  transitioning from one miplevel to another doesn't work.

v2: Added comment "/* Anonymous namespace */" on the final closing
brace.  Adjusted the naming scheme for the subtests to allow
additional format combinations to be added in the future.  Also added
format combinations involving z32f and z32f_s8.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
util: Add include guards in piglit-util.h.

Solaris Studio does not support "#pragma once".

Fixes hiz-util build with Solaris Studio.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Merge branch 'master' of git://anongit.freedesktop.org/piglit