GL3.3: Test invalid parameters for GL_ARB_texture_rectangle.

v2: Move test into arb_texture_rectangle folder and change context

v3: Add tests for other invalid params

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
baseinstance-doesnt-affect-gl-instance-id: make it work with GL 3.1
all.tests: add arb_shader_texture_lod-texgradcube
gl-1.0/long-dlist: add test of long display lists

Reviewed-by: Eric Anholt <eric@anholt.net>
ARB_texture_view: Add format test case for formats not in VIEW_CLASS table

Add test case for this sentence in the extension registry spec for
ARB_texture_view, that involves identical formats:
"The two textures' internal formats must be compatible according to Table
3.X.2 ... the internal formats must be identical if not in
that table, or else an INVALID_OPERATION error is generated"

Both identical and non-identical format cases are tested.

Reviewed-by: Brian Paul <brianp@vmware.com>
util: Add piglit_split_string_to_array()

This splits a string into an array of strings, which is useful for
splitting the string returned by eglQueryString(EGL_EXTENSIONS).

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
util: Move piglit_strip_arg()

Move it from piglit-framework-gl.h to piglit-util.h. This is a generic
utility that should not be restricted GL tests.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
egl_ext_client_extensions: Add initial tests

Add tests for the conformance tests listed in the
EGL_EXT_client_extensions spec.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
arb_base_instance: Include OpenGL directories.

Fixes build errors on OpenBSD.

freeglut_std.h:122:19: error: GL/gl.h: No such file or directory
freeglut_std.h:123:20: error: GL/glu.h: No such file or directory

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
query_renderer: Add some common infrastructure for GLX_MESA_query_renderer tests

All of the tests for this extension will require a bunch of function
pointers, etc.  This patch adds a function to get these function
pointers and some macros to wrap calls using them.

v2: Don't use __ in function names because it is reserved by ISO C.
Suggested by Paul.  FWIW, all of the other GLX tests use __ in the
function pointer names.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
query_renderer: Add test that compares values from glXQueryRendererIntegerMESA et al

Verifies that all values from glXQueryRendererIntegerMESA,
glXQueryCurrentRendererIntegerMESA, glXQueryRendererStringMESA, and
glXQueryCurrentRendererStringMESA can be queried.  It also verifies that
each of the Current and non-Current versions returns the same value for
each query.

v2: Fix some of the error messages in the over-run tests.  Suggested by
Paul.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
arb_separate_shader_object: Silence _GNU_SOURCE redefined warning.

Fixes GCC warning.

ValidateProgramPipeline.c:23:0: warning: "_GNU_SOURCE" redefined [enabled by default]
 #define _GNU_SOURCE
 ^
<command-line>:0:0: note: this is the location of the previous definition

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
cl: check for cl_khr_fp64 in generated double store tests

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
cl-program-tester: Allow double type

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

v2: Rework to use subtests
v3: fix printf output
    use piglit_merge_result
    whitespace fixes
    0 as default was added in OpenCL 1.2

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Test some corner cases of loop analysis.

As of Mesa d7fa9eb, two of these tests are known to fail:

- vs-call-in-nested-loop.shader_test
- vs-inner-loop-modifies-outer-loop-var.shader_test

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Test that a layered fbo can have attachments with different layer counts.
Revert "framework: Add support for a test timeout"

This reverts commit ab2eb660925e3680e868c5f469a4ef32e6dd9a59.

Conflicts:
	framework/status.py
WIP: loop analysis tests
WIP: test clear color with mismatched layer count