arb_texture_cube_map_array: sample-cube-map-array-shadow use glDrawArrays instead of piglit_draw_rect

Don't mix piglit_draw_rect and additional attribute arrays.

Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm>
Reviewed-by: Eric Anholt <eric@anholt.net>
glsl-max-varyings: Use glDrawArrays instead of piglit_draw_rect.

Don't mix piglit_draw_rect and additional attribute arrays.

Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm>
Reviewed-by: Eric Anholt <eric@anholt.net>
copyteximage: Use glDrawArrays instead of piglit_draw_rect.

Don't mix piglit_draw_rect and additional attribute arrays.

v2: Use individual functions piglit_draw_rect_tex, draw_rect_tex_3d and
    draw_rect_tex_cube_face instead of draw_rect_tex for drawing.

Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm>
Reviewed-by: Eric Anholt <eric@anholt.net>
sampler-cube-shadow: Use glDrawArrays instead of piglit_draw_rect.

Don't mix piglit_draw_rect and additional attribute arrays.

Also don't immediately quit test if not running automatically.

v2: Always call piglit_present_results, correct spelling;

Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm>
Reviewed-by: Eric Anholt <eric@anholt.net>
CL: Add int2 stack and int2/int4 constant load tests

v2: Split the constant load test into a separate file,
    and add int4 constant load test

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Add simple glPolygonOffset test

This isn't fancy, it just sets the polygon offset and then draws one
object on top of another. Tests combinations of lines/points/fills.

v2 [Ken]:
- Rebase onto Piglit master, reworking includes and config section now
  that we use Waffle for the framework.  Fix author and copyright date.
  Remove nested function (suggested by Brian Paul).  Use
  piglit_present_results().  Use stdbool rather than GLboolean.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
glsl-4.00/ARB_texture_query_lod: Fix requirements section

s/required_extensions/require_extensions/.  The tests are now correctly
skipped on implementations that don't support GL_ARB_texture_query_lod.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
CorrectPreprocess11: Remove from tree.

So that we don't have to go out of our way to remove it later.

Reviewed-by: Brian Paul <brianp@vmware.com>
quick.tests: Get glean --quick parameter in piglit-print-commands.

Reviewed-by: Brian Paul <brianp@vmware.com>
gpu.tests: Filter GLSLParserTest without flattening the group tree.

Reviewed-by: Brian Paul <brianp@vmware.com>
piglit-print-commands: Print relative paths for binaries.

Relative executable paths introduce no new requirements.  The tests'
arguments are already relative, so they already imply that the commands
must be run from the top of the piglit directory for printed commands to
work properly.

The benefit of relative executable paths is that it makes it easier to
run the tests on a different directory later on.

Reviewed-by: Brian Paul <brianp@vmware.com>
all.tests: Normalize the generated test dir.

That is, pass "generated_tests/foo" arguments instead of
"tests/../generated_tests/foo", therefore saving screen real-estate on
the test logs.

Reviewed-by: Brian Paul <brianp@vmware.com>
.gitignore: Adds .ninja_deps to the list of ignored files

When using ninja as the build system for piglit this file is
auto-generated.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Add geometry shader support to texelFetch and textureSize tests.

v2: Address both texelFetch and textureSize in a single patch, since
they're commingled in all.tests.

Reviewed-by: Fabian Bieler <fabianbieler@fastmail.fm>
!UPSTREAM: Performance micro-benchmark for fast color clears.
util: Create generic piglit_draw_rect() functions.  TODO: rework.

This patch adds the following functions to piglit-util-gl-common:
- piglit_draw_rect_generic
- piglit_draw_rect_back_generic
- piglit_draw_rect_z_generic
- piglit_draw_rect_tex_generic

These functions are similar to corresponding functions without the
"_generic" suffix, except that instead of delivering vertex position
and texture coordinates to the vertex shader using glVertexPointer()
and glTexCoordPointer(), they deliver to the generic attributes
PIGLIT_ATTRIB_POS and PIGLIT_ATTRIB_TEX.  These functions use VBO's
and VAO's when available, so they may be used when testing core
contexts.

These functions also work with compatibility contexts and with all
GLES versions.  Since GLES1 doesn't support generic vertex attributes,
we fall back to using glVertexPointer() and glTexCoordPointer() in the
GLES1 case.

When building GLES tests, the behaviour of the new _generic functions
is for all intents and purposes the same as that of the pre-existing
non-generic functions.  So to avoid code duplication, the non-generic
functions simply call their generic equivalents in GLES builds.
WIP: start testing GS in/out types
WIP: fix shader_runner error reporting when vertex data included.
WIP: Basic test of GS input varyings
Geometry shaders: add a basic EndPrimitive() test.