ARB_explicit_uniform_location: Remove unused variables.
CL: Add basic mapped memory tests

Tests blocking map for read/write by:
- Creating host/device src/dst buffers
- Map device src buffer for writing, and memcpy to it before unmapping
- enqueueCopyBuffer from src to dst
- Map device dst buffer for read, and memcpy from it before unmapping
- Compare host src/dst buffers for equality

v2: Add closing curly brace

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
fbo-blit-d24s8: avoid using textures

There's no reason to attach the teximages to the framebuffer. Instead
use renderbuffers so that we don't need to depend on ARB_depth_texture.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
copyteximage: add ARB_depth_texture dependencies

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
texwrap: add ARB_depth_texture dependency

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
readpixels-24_8: replace teximage use with renderbuffer

This removes an implicit dependency on ARB_depth_texture (and is more
efficient).

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
ARB_explicit_uniform_location: test overlapping location within array

v2: fix style issues (Anuj)
v3: change to be a shader-runner test (Ian)
v4: change vertex shader to passthrough,
    additionally test also across shader stages (Anuj)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by : Anuj Phogat <anuj.phogat@gmail.com>
ARB_explicit_uniform_location: test overlapping locations

This test tests overlapping uniform locations across shader stages
for a single vec4 uniform.

v2: fix style issues (Anuj)
v3: change to be a shader-runner test (Ian)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by : Anuj Phogat <anuj.phogat@gmail.com>
ARB_explicit_uniform_location: test setting explicit location twice

This test sets different explicit location for same uniform from
different shader stage.

v2: fix style issues (Anuj)
v3: change to be a shader-runner test (Ian)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by : Anuj Phogat <anuj.phogat@gmail.com>
ARB_explicit_uniform_location: multiple declarations

Tests that setting explicit location in vertex shader but not
setting it in the fragment shader links succesfully.

Tests also that setting same explicit location twice links succesfully.

v2: fix style issues (Anuj)
v3: change to be a shader-runner test (Ian)
v4: test also setting same location twice (Anuj)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by : Anuj Phogat <anuj.phogat@gmail.com>
ARB_explicit_uniform_location: test overlap location with unused uniform

This test tests overlapping uniform locations across shader stages
against unused uniform.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by : Anuj Phogat <anuj.phogat@gmail.com>
Remove hunk that shouldn't have been committed with 4a95eaf9a.

Reported-by: Tapani Pälli <tapani.palli@intel.com>
fbo-tex-rgbx: test rendering to and texturing from an RGBx texture

GL_RGB internal formats are usually stored as RGBx.  This test makes
sure that the empty alpha channel is one when we sample from the texture.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
ARB_explicit_uniform_location: fix a bug in boundaries test

Patch sets the maximum valid explicit location to test as
"GL_MAX_UNIFORM_LOCATIONS - 1" (as the spec states).

Test passes now also on GTX 660 running the Nvidia proprietary
driver for Linux, version 319.32.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
arb_vertex_type_10f_11f_11f_rev: remove GL3isms from tests

While the extension does technically require GL3, it's only
really required for the new error language added to
VertexAttribIPointer.

V2: Bind attrib locations before linking as required.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Eric Anholt <eric@anholt.net>
KHR_debug: test glObjectPtrLabel() if OpenGL is 3.1 or greater

glFenceSync is only supported if the GL version is 3.2 or greater, or if
the ARB_sync extension is supported.

Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Reviewed-by Fabian Bieler <fabianbieler@fastmail.fm>
KHR_debug: Add debug-object-label support for GLES

For GLES the KHR_debug extension requires a KHR suffix to all functions and
tokens.

Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Reviewed-by Fabian Bieler <fabianbieler@fastmail.fm>
KHR_debug: Add debug-push-pop-group test GLES support

Added KHR suffix for GLES2 spec accordance.

Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Reviewed-by: Fabian Bieler <fabianbieler@fastmail.fm>
shader_runner: Don't try to use more clipplanes than supported.

Test the clip plane number against the implementation dependent value of
GL_MAX_CLIP_PLANES rather than the enum directly.

Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm>
Reviewed-by: Brian Paul <brianp@vmware.com>
gleantest_tests.py: Adds test for erroneous pass in GleanTest

Glean tests report pass when returning a code 127 (library not found),
this is obviously false, since the tests didn't run they could not
pass.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>