dlist-beginend: Fix up subtest names.

For better or worse, the "/" in a test name is interpreted as a group
separator.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
util: Bind fixed attrib locations for "piglit_vertex" and "piglit_texcoord"

This will let us easily use piglit_draw_rect_tex() in ES-only shader
tests, and is a step toward having the same shaders usable between ES
and desktop without going to full VBO setup in shader_runner.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
util: Make an even simpler interface for building simple shaders.

The previous piglit_link_simple_program() interface required you to
compile your shaders up front, and tests routinely have issues with
either not checking that the component shaders compiled, or not
checking that the program linked, and then confusingly fail later in
the test.  This one enforces that the program actually compiled and
linked before continuing, so you don't need to worry about error
checking.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
varying-struct-centroid: Convert to new piglit_build_simple_program().

I'm not intentionally singling this test out (which would have tried
to continue if a shader stage failed to compile), it's just the first
thing I looked at when I was going to crib code for a new GLES test,
and decided to go work on new util functions instead.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
util: egl: support for skipping unsupported extension tests

v2: Remove exit() call already implied by piglit_report_result()
    (review by Chad, change by anholt)

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
glsl-1.50: allow the same name for uniform and varying interface

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
shader_runner: program must be in use for vertex data upload

If the shader_test wants to upload vertex data, then we make
sure the program linked and is in use. If not, then the test
will fail.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
piglit-run.py: Fix Path resolution.

Path resolution should always be a resolved from relative path to absolute path.
This is to allow for distributed testing where you build a single copy of
piglit and then redistribute it over a network.

Signed-off-by: Kenney Phillis <kphillisjr@gmail.com>

v2: Correct whitespace errors
    Convert tabs to spaces
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
framework/core.py: fix path resolution when loading test results.

This has two main improvements that can be seen.
1) Relative paths can be used in lists files. This works great since it means
that simpler scripts can be used to generate the list file itself.
2) Relative paths can be specified at all stages and it will not cause the
scripts to break

Signed-off-by: Kenney Phillis <kphillisjr@gmail.com>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
util/gl: Change default waffle platform

Change default waffle platform from GLX to XEGL for GLES tests.

The default platform was GLX for all GL tests (GL and GLES).  But not all
GLX implementations support creation of ES1 and ES2 contexts. Unless the
user explicitly set PIGLIT_PLATFORM to some EGL platform, this problem
caused GLES tests to skip.

Enables 76 GLES tests on my system.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Modify the FindOpenCL.make to add the CL lib name

Some OpenCL lib's name is not libOpenCL.so.
Some thing like libCL.so, libcl.so may exist,
and in these cases the check failed.
Add the names to fix this problem.

Signed-off-by: Junyan He <junyan.he@linux.intel.com>