built-in-constants.c: Fail test if file cannot be opened

built-in-constants relies on a file being passed to it describing the
tests to run. If this file does not exist the program will segfault.
This patch adds the appropriate check after calling
piglit_load_text_file to check for a NULL value and fail if it is.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
tests/all.py: fix built-in-constants arb_tessalation

built-in-constants is a takes a file as an argument, in all cases except
the arb_tesselation these use os.path.join to create an absoulte path,
but this test provides a relative one. This results in a test failure if
piglit is not run from the root of the piglit source directory.

This will expose the bug fixed in the previous patch.

v2: - fix commit message written late at night

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
cl: Add atan2 tests

Signed-off-by: Aaron Watry <awatry@gmail.com>
cl: Add asin tests

Signed-off-by: Aaron Watry <awatry@gmail.com>
cl: Add fabs tests

Signed-off-by: Aaron Watry <awatry@gmail.com>
cl: Add tan tests

Signed-off-by: Aaron Watry <awatry@gmail.com>
cl: Add fmod tests

Signed-off-by: Aaron Watry <awatry@gmail.com>
arb_gpu_shader_fp64: 420pack uniform initializer tests for double

v2: add GL_ARB_shading_language_420pack to require (Matt)
    actually use that 420pack (Matt, Chris)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
cl: Add copysign tests

v2: Fix -NaN test
v3: Rebase

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Aaron Watry <awatry@gmail.com>
glsl-1.20: new test for a GLSL scoping bug in Mesa

Mesa thinks Name is a type in "gl_Position = Name".

Reviewed-by: Brian Paul <brianp@vmware.com>
opencv: Add 'individual' option to piglit.conf

This replaces the individual parameter in add_opencv_tests()
quick_cl: Add oclconform tests
Remove all_cl profile

The test list that was provided by the all_cl can now be replicated with the
quick_cl profile by adding the 'individual' option to the opencv
section.
gl-4.4: Test GL_MAX_VERTEX_ATTRIB_STRIDE

V3: add positive version of each test
V2: changed to -> too

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Adds test gl-1.0-polygon-line-aa

This tests correct rendering of polygons using antialised GL_LINE mode for one
face and GL_FILL for the other one. On some Intel hardware at least this used
to require special handling that has caused regressions in the past.

The test checks that the GL_FILL face of the polygon renders properly.

Reviewed-by: Brian Paul <brianp@vmware.com>
arb_gpu_shader5: add some compiler tests for stream qualifier

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
arb_gpu_shader5: Add linker tests to verify 'stream' layout qualifier

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
arb_gpu_shader5: Add execution test to verify 'stream' layout qualifier

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
arb_gpu_shader5: Add new test emitstreamvertex_nodraw

It checks that a vertex emitted in stream !=0 is not
processed in the fragment shader.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
arb_gpu_shader5: fix output message in xfb-streams.c

This test had the primitives generated and transform feedback primitives
written message output saying the opposite.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>