depthstencil-render-miplevels: Move the rendering to display() time.

I want to actually present results on the screen so that debugging
this test involves less meditation before achieving enlightenment.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
depthstencil-render-miplevels: Make the stencil value scale like depth.

This will let the presentation of stencil work like presentation of
depth.
depthstencil-render-miplevels: Present the results in non-auto mode.

I tried to make the presentation match the data that was originally
probed out of the buffer.  This means not using depth texturing, since
on Intel that can trigger texture relayouts.  I also left in use of
the piglit probe functions for the auto path, so there are two
separate readpixels calls on each level in the non-auto case where
presentation happens.

v2: Use Paul's ortho hack for large miplevels, and rewrite commit message.
linestipple: Update for current piglit style.

Wraps at 80 columns, spaces between "for" and "(", spaces around
binary operators, ARRAY_SIZE.

Reviewed-by: Brian Paul <brianp@vmware.com>
linestipple: Report subtest results.

It's a tricky test to get right, so being able to identify
improvements in components is useful.

This required removing the "/" from one test's name, since those are
intepreted as group dividers.

Reviewed-by: Brian Paul <brianp@vmware.com>
amd_performance_monitor: Fix multi-statement macro 'report'.

Fixes "Nesting level does not match indentation" defect reported by
Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Add a GLSL parser test for a late function prototype.

While this prototype is unnecessary, it should still be legal.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
html: Use CSS for indenting table rows rather than colspan.

Previously, we indented groups of tests by adding 10 columns
of whitespace to the table and adding colspan.  This is pretty
ugly; we really should use CSS for things like this.

The new CSS-based approach should work with deeper nesting levels,
and simplifies the tables.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
html: Use CSS3 for zebra-striping the tables.

Most browsers support the :nth-child selector by now, which allows us to
zebra-stripe the tables in CSS rather than making the python code
annotate every row with an 'a' or 'b' class.

While we're at it, stripe the pass/fail/crash results too.  Based on
some CSS fragments, this was the intent all along, but didn't work.

This also changes the striping slightly: it now stripes purely based on
whether the row is even/odd, rather than striping on a per-group basis.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
html: Remove the index_groupgroup template.

It was entirely empty.

Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
html: Rework colgroup generation.

There's no need to specify width="50pt" on every <col/>; we can easily
specify a width for all but the first column with CSS3.

At that point, using a template file that contains only <col/> seems
absurd; just repeat that the right number of times in the python code.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
html: Change column width from 50pt to 70pt

This accommodates the increase in the total number of tests, so that the
column default width is great enough for the 'all' category, which is
now over 5 digits, a total of 11 characters.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
html: Change the main table from "width: 100%" to min-width.

When a report contains many columns, the table may need to be larger
than the width of the page.  Currently that happens due to the browser
looking at the table content in order to determine the size, but when we
switch to table-layout: fixed, it would limit it to the page size.

Doing this now avoids the problem before it first occurs.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
html: Use the vastly faster "fixed" table layout algorithm.

The usual "auto" table layout algorithm makes the browser look at the
contents of each row in the table in order to determine the layout.  We
have 10,000 rows.  This is insanely expensive.

The "fixed" algorithm just uses the <col/> info, and possibly the first
row.  This works out just fine.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
html: Escape test names in the summary page.

Characters like & and < are need to be escaped in proper HTML/XML.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
html: Use XHTML 1.0 Strict.

We weren't specifying a DTD, which made validator.w3.org angry.  There's
no reason not to be strict or use SGML-based HTML, so go with XHTML.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
link-mismatch-layout-02: Remove storage qualifier.

The test is written in GLSL 1.1 which doesn't allow storage qualifiers.
The AMD_conservative_depth specification references them but it is written
against a later GLSL spec.

Reviewed-by: Eric Anholt <eric@anholt.net>
glsl-max-varyings: Allow up to 256 varyings.

Increase the supported number of varyings from 32 to 256.
Shrink test rectangles from 10x10 pixels to 2x2 pixels.

Reviewed-by: Eric Anholt <eric@anholt.net>
pragma-macro-expansion: changed to extension-macro-expansion.

From the GLSL 1.10 specification:
"If an implementation does not recognize the tokens following #pragma, then it
will ignore that pragma."

So even without macro expansion the directive
 #pragma debug(FOO)
should be ignored and the shader should compile.

Reviewed-by: Eric Anholt <eric@anholt.net>
framework/summary.py: Replace Section heading with docstrings

The sections headings are not really that useful, but they might as well
be kept as class level docstrings instead of being thrown away.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>