ARB_explicit_attrib_location: fix layout-12|13.frag, add layout-14.frag

This is the same change as what commit fc19d53 did for 1.20 tests.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81076
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Test GL_ARB_clear_texture using multisample textures

This adds a test for glClearTexSubImage when clearing a sub-region of
a multi-sample texture. The texture is created with four samples and
then rendered at four times the size with a special shader that
renders every sample.
Test some error conditions of GL_ARB_clear_texture

This checks some basic error conditions of glClearTex*Image such as
using invalid texture objects and out of range regions.
Test GL_ARB_clear_texture using integer textures

This tests calling glClearTexSubImage using integer textures with
various different formats.
Test GL_ARB_clear_texture using sRGB textures

Adds a test using glClearTexSubImage with sRGB-format textures. This
is interesting to test because the clear implementation should not be
applying the sRGB conversion but a naïve implementation using glClear
might accidentally do so.
cl-program-tester: Allow tolerance to be specified in terms of ulp
cl: Add tests for atan builtin
cl: Add tests for cos builtin
cl: Add tests for sin builtin
genclbuiltins: Only use ulp tolerance for float types

This was broken in dd3577c3d59c8647c957b6754ced6786b1667b33
genclbuiltins: Add positional argument specifier.

Fix build failure with Python 2.6 introduced with commit
6adec8a68e2068114b9ff34ea462f22c32f80620.

Traceback (most recent call last):
  File "piglit/generated_tests/generate-cl-relational-builtins.py", line 194, in <module>
    main()
  File "piglit/generated_tests/generate-cl-relational-builtins.py", line 191, in main
    gen(DATA_TYPES, CLC_VERSION_MIN, functions, testDefs, dirName)
  File "piglit/generated_tests/genclbuiltins.py", line 395, in gen
    testIdx, vecSize, (fnType is 'tss'))
  File "piglit/generated_tests/genclbuiltins.py", line 333, in print_test
    f.write(' tolerance {} ulp'.format(tolerance))
ValueError: zero length field name in format

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
gles-3.0: Verify gl_VertexID when used with glDrawArrays

OpenGL expects the gl_VertexID to start counting with the 'start' value
passed to glDrawArrays.

NOTE: This test currently fails on the i965 driver.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80247
gl-3.0: Verify gl_VertexID when used with glMultiDrawArrays

OpenGL expects the gl_VertexID to start counting with the 'start' value
of each individual DrawArrays.

This test passes on NVIDIA (331.89 on GTX 260).

NOTE: This test currently fails on the i965 driver.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80247
Fix piglit-util-gl-common.h -> piglit-util-gl.h

The file was recently renamed. Fixes build failure since commit
4ee589ec1c4af7439e1f10a8fd4333c ('gles-3.0: Verify gl_VertexID when used
with glDrawArrays').

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
clear-texture: Fix a warning in the test for error conditions

error.c was including the wrong header so it was missing the
declaration for test_invalid_format and was generating a compile
error.
Add a test case for all of the modes of RGBA_UNORM BPTC texture

This creates a compressed texture with a block for each of 8 modes of
RGBA_UNORM BPTC compression. The texture is then both rendered and
read back via glGetTexImage and compared with the expected values.