cl: Extend float to long conversion test

Fill in subtest name
v2: Add 2^63 as a test value

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
arb_tessellation_shader: Add GL minmax test

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
built-in-constants: Support tessellation shaders

Note: If the file requests testing only with GL_TESS_CONTROL_SHADER or
GL_TESS_EVALUATION_SHADER, then the vertex, geometry & fragment shaders
will not test the constants.

The reason for this is that NVidia will complain if
is used with these stages.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_tessellation_shader: Add GLSL minimum-maximums test

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_tessellation_shader: Fix TS GL API minmax build

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_tessellation_shader: Add nop tessellation drawing test

This test will add no extra tessellated triangles. It basically passes
verticies through the tessellation stages and draws two triangles.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
tests: tesselate => tessellate (only comments were changed)

Changes genertated with
find tests -name '*.c*' | xargs sed -i -e 's@tesselate@tessellate@g'

'git grep -i tessela' now only returns results in registry XML files.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
arb_compute_shader glsl min/max: Update gl_MaxComputeUniformComponents

The http://www.opengl.org/registry/specs/ARB/compute_shader.txt spec
has an inconsistency:
 * gl_MaxComputeUniformComponents is spec'd as 1024
 * MAX_COMPUTE_UNIFORM_COMPONENTS is spec'd as 512

In Khronos bug 12370 this has been resolved in that the GLSL version
should be lowered to 512.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
glsl: test a switch statement where default is last

This test is copy paste of fs-default_notlast.shader_test with
the cases rearranged.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
ext_framebuffer_multisample: Add NORETURN attribute to print_usage_and_exit.

Silence clang sometimes-uninitialized warnings.

clip-and-scissor-blit.cpp:362:13: warning: variable 'src_samples' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        } else if (strcmp(argv[2], "normal") == 0) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clip-and-scissor-blit.cpp:369:26: note: uninitialized use occurs here
        src_fbo.setup(FboConfig(src_samples, src_size[0], src_size[1]));
                                ^~~~~~~~~~~
clip-and-scissor-blit.cpp:362:9: note: remove the 'if' if its condition is always true
        } else if (strcmp(argv[2], "normal") == 0) {
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clip-and-scissor-blit.cpp:352:17: note: initialize the variable 'src_samples' to silence this warning
        int src_samples;
                       ^
                        = 0
clip-and-scissor-blit.cpp:362:13: warning: variable 'dst_samples' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        } else if (strcmp(argv[2], "normal") == 0) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clip-and-scissor-blit.cpp:370:26: note: uninitialized use occurs here
        dst_fbo.setup(FboConfig(dst_samples, dst_size[0], dst_size[1]));
                                ^~~~~~~~~~~
clip-and-scissor-blit.cpp:362:9: note: remove the 'if' if its condition is always true
        } else if (strcmp(argv[2], "normal") == 0) {
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clip-and-scissor-blit.cpp:353:17: note: initialize the variable 'dst_samples' to silence this warning
        int dst_samples;
                       ^
                        = 0

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
arb_vertex_type_2_10_10_10_rev/array_types: test vertex arrays

A new test to exercise GL_(UNSIGNED_)INT_2_10_10_10_REV, 4/GL_BGRA,
and normalized/unnormalized array combinations.

Reviewed-by: Brian Paul <brianp@vmware.com>
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.
util/gl: Add the BPTC-compressed formats to piglit-util-gl

piglit_rgbw_image has a special override for compressed formats to
ensure that when the size of the image is less than the size of a
block then it picks a solid color instead of using four colors. This
patch adds the BPTC formats to this list.

It also modifies piglit_get_compressed_block_size to handle the
formats.
Add the bptc formats to fbo-formats.h
bptc: Add tests using fbo-generatemipmap-formats

The unsigned half float format needs special handling because the
texture that the test uploads tries to use negative values.
texwrap: Add the BPTC formats
compressedteximage: Add tests for the four BPTC formats