arb_viewport_array: Only specify 150 for shader version

These tests are expected to run with OpenGL 3.2, so
we should only use #version 150. We also need to
enable the GL_ARB_viewport_array extension in the
geometry shader.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Tested-by: Jon Ashburn <jon@lunarg.com>
ARB_viewport_array: Fix minmax test for piglit_require_extension

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
gbm: add event loop and exit after 1 run

If -auto is not used when the piglit platform is gbm, then the test
will hit an abort call. Additionally, it will not actually call
the test display function.

After this change, the test will run once and exit, similar
to what were to happen if the user had pressed the escape key
with other frameworks.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
tests/igt: Add runtime environment checks

This is one of the nice pieces that I've never ported from the old
make based test runner. Note that we only use the result of the check
when actually running the testcases so that enumerating tests still
works as non-root on arbitrary machines.

v2: Fail the tests harder.

Cc: Ben Widawsky <ben@bwidawsk.net>
Requested-by: Ben Widawsky <ben@bwidawsk.net>
Acked-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
GL3.2 GL_ARB_sync: Test that the correct error messages are returned from invalid input for WaitSync

v2: Fix comments, remove redundant code

v3: Add to all.tests

v4: More comment changes, rename variables, remove bad test case

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Test that VertexAttribDivisor() outputs correct error if index is out of range.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
fbo-clear-formats: fix the stencil clear test

glBlitFramebuffer generates a GL error, good old glCopyPixels doesn't.

Tested-by: Dylan Baker <baker.dylan.c@gmail.com>
all.tests: make fbo-depthstencil tests concurrent

Tested-by: Dylan Baker <baker.dylan.c@gmail.com>
all.tests: make depthstencil-render-miplevels tests concurrent

Tested-by: Dylan Baker <baker.dylan.c@gmail.com>
all.tests: make fbo format tests concurrent

Tested-by: Dylan Baker <baker.dylan.c@gmail.com>
all.tests: make fbo-rg tests concurrent

Tested-by: Dylan Baker <baker.dylan.c@gmail.com>
all.tests: make multisample-formats tests concurrent

Tested-by: Dylan Baker <baker.dylan.c@gmail.com>
all.tests: make glsl-getactiveuniform-count tests concurrent

Tested-by: Dylan Baker <baker.dylan.c@gmail.com>
all.tests: make some shader tests concurrent

Tested-by: Dylan Baker <baker.dylan.c@gmail.com>
all.tests: make fbo-depth and fbo-stencil tests concurrent

Tested-by: Dylan Baker <baker.dylan.c@gmail.com>
all.tests: make ARB_color_buffer_float tests concurrent

Tested-by: Dylan Baker <baker.dylan.c@gmail.com>
all.tests: make MSAA accuracy tests concurrent

Tested-by: Dylan Baker <baker.dylan.c@gmail.com>
all.tests: cleanups

Tested-by: Dylan Baker <baker.dylan.c@gmail.com>
all.tests: make MSAA FBO tests concurrent

Tested-by: Dylan Baker <baker.dylan.c@gmail.com>
Always bind piglit_winsys_fbo instead of 0

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