ext_unpack_subimage/basic: Fix GLSL linking by using the helper function.

It was trying to use glGetShaderiv on a shader instead of a program,
so the test was reporting a warn status from the mesa error produced.
Just rip out all the duplicated code as a fix.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
new test: glx-multithread-texture.

New test for loading texture data from one thread and context while drawing
with those textures from another thread and shared context.  The threads are
synchronized so they do not attempt to use the same texture at the same time.

v2
- use MIT license
- fix formatting
- correct float pixel value is integer/255, not integer/256
- may not have alpha channel, so don't probe it
- sleep to prevent starvation
- passes on pineview with intel driver and nvidia

v3[chadv]
- fix build by passing api to piglit_dispatch_default_init()

Signed-off-by: Frank Henigman <fjhenigman@google.com>
Tested-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com
CL: Add get_num_groups tests

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
CL: Add get_local_id tests

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
CL: Add int min/max tests

These macro defs are defined in section 6.11.3 of the spec (ver 1.1)

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
gs: Make generated geometry shader tests use GLSL 1.50.

Previously, these tests used ARB_geometry_shader4.  However, the
initial implementation of geometry shaders in Mesa isn't going to
support ARB_geometry_shader4.  So test this functionality using GLSL
1.50 geometry shaders instead.
gs: Sanity test interactions between geometry shaders and extensions.

These tests are parallel to the equivalently-named tests in
tests/spec/arb_geometry_shader4, except that they verify that the
extensions can be used in GLSL 1.50 geometry shaders rather than
ARB_geometry_shader4 geometry shaders.
gs: Test uniforms and constants in GLSL 1.50 geometry shaders.

These tests are parallel to the equivalently-named tests in
tests/spec/arb_geometry_shader4, except that it verifies that the
uniforms and constants can be used in GLSL 1.50 geometry shaders
rather than ARB_geometry_shader4 geometry shaders.
gs: Test geometry shader that doesn't generate any primitives.

This test is parallel to the equivalently-named test in
tests/spec/arb_geometry_shader4, except that it verifies correct
behaviour in GLSL 1.50 geometry shaders rather than
ARB_geometry_shader4 geometry shaders.
Convert some tests to use PIGLIT_GL_TEST_CONFIG_* macros.

These tests aren't doing anything fancy in main(), so they can use
PIGLIT_GL_TEST_CONFIG_BEGIN and PIGLIT_GL_TEST_CONFIG_END.
framework: allow locals to be declared in piglit config block.
framework: parse piglit core args during piglit_gl_test_config_init()

This makes it safe to examine argc and argv between
PIGLIT_GL_TEST_CONFIG_BEGIN and PIGLIT_GL_TEST_CONFIG_END, since
piglit fragmework arguments have already been stripped away.

That in turn means that the following tests can use
PIGLIT_GL_TEST_CONFIG_{BEGIN,END} instead of having to declare their
own main() functions:

- spec/arb_texture_buffer_object/formats.c
- spec/gl-3.0/required-renderbuffer-attachment-formats.c
- spec/gl-3.0/required-sized-texture-formats.c
- spec/gl-3.0/required-texture-attachment-formats.c
- spec/gles-3.0/oes_compressed_etc2_texture-miptree.c