Add a GLSL ES 3.00 compiler test for chained qualifiers.

Mesa had a bug where using an "auxiliary storage qualifier" (to use the
420pack terminology) such as "centroid" would lose any precision
qualifiers.

This simple test trips that bug.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reported-by: Kevin Rogovin <kevin.rogovin@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
line-flat-clip-color: Initialize variable.

Fixes "Uninitialized scalar variable" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
log: Replace console output with a simpler output

This replaces the console spewer with a simpler console reporting
mechanism inspired by the output of ninja. This reduces code, remove all
singleton instances and speeds up piglit runs. There is a drawback, the
output is much more terse than the previous implementation, giving only
the following output:
[<finished>/<total>] Running Test(s): <test number>
[16008/16011] Running Test(s): 16007 16008 16009 16010

This means that one can't look at the output to readily see that all
tests are skipping or failing. However, since these problems are usually
related to environment setup, and not to piglit doing something wrong,
these should be moved to some kind of prerun check instead of relying on
user attentiveness. Since the test numbers update only when they are
completed and hung test can be spotted.

Performance examples:
Master:
./piglit-run.py -c tets/quick.tests foo 1065.64s user 373.48s system
295% cpu 8:06.35 total

With this patch:
./piglit-run.py -c tests/quick.tests foo  1045.33s user 353.20s system
315% cpu 7:23.56 total

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
core: don't try to resolve the real path of the file

This makes it possible to run the summary on e.g. compressed files or
otherwise piped in with the <( ... ) shell construct.

There should be no difference between open() on a path before and after
the realpath call.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
framework: dmesg is expected to be a string, not a list of values

Since there are now also summary results in the wild with the list in
their json, handle them correctly as well instead of printing out a
stringified array.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
textureGather: add textureGatherOffsets to execution test (v2.1)

Test for checking textureGatherOffsets from ARB_gpu_shader5 works, this
is tested on the nvidia binary driver and passes.

also add to all.py.

v2.1 fix VS bits + whitespace

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Signed-off-by: Dave Airlie <airlied@redhat.com>
gtest: Fix bug introduced in 90a256411

In the mentioned commit the signature of Test.interpretResult was
changed from (self, out, returncode, results, dmesg) to (self, out,
returncode, results), however, this was not applied to GTest, which
retained the dmesg argument.

This patch fixes that bug.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Tom Stellard <thomas.stellard@amd.com>
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
util: add piglit_probe_texel_volume_rgba()

This is similar to piglit_probe_texel_rect_rgba except it allows
for probing a subvolume of a 3D texture, or slices of a 2D array
texture.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_texture_view: Test uploading into a view with nonzero MinLevel

Tests that the correct levels are overwritten when uploading texture
data through a view with a nonzero MinLevel.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_texture_view: Test uploading into a view with nonzero MinLayer

Tests that the correct layers of a 2D array texture are overwritten when
uploading through a view.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_texture_view: Add test for clearing a 2D view of a 2D array.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_texture_view: Add test for clearing a layer of a 2D array view

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
arb_texture_view: Add test for layered framebuffer / MinLayer.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>