texture_rectangle: Whitespace / trivial cleanups.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
texture_rectangle: Also test the other mirror wrap modes

These aren't part of GL 3.3, but they should generate GL_INVALID_ENUM
when used.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Add new concurrency option

This patch adds a new concurrency option that runs all tests out of a
multi-threaded pool, ignoring their request to be threaded or not. This
new option is mutually exclusive with the -1/--no-concurrency option.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
util: Do not define asprintf for MinGW.

MinGW provides asprintf in stdio.h.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72556
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
copyteximage: Don't use fixed-function for array textures

GL_EXT_texture_array does not add support for array textures with fixed
function.  The only reason this ever worked with Mesa is because Mesa
also supported GL_MESA_texture_array... which does add support for array
textures with fixed function.

For the GL_TEXTURE_1D_ARRAY and GL_TEXTURE_2D_ARRAY cases, the test now
uses a fragment shader that interacts with fixed-function vertex
processing.

I can't see how the GL_TEXTURE_1D_ARRAY or GL_TEXTURE_2D_ARRAY cases
could have ever worked on any implementation other than Mesa.  There are
currently patches on the mesa-dev list that remove support for
GL_MESA_texture_array, and these patches cause the unpatched version of
this test to fail.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Revert "util: Do not define asprintf for MinGW."

This reverts commit 7c2a6a7f4b8f90ff523a9302300830730668cd11.

Commit 7c2a6a broke things for me.  Revert the change until
we can dig deeper into the problem.
gl-3.2-depth-tex-sampling: test OpenGL 3.2 core depth texture sampling

The spec says (d,d,d,1) should be returned.  NVIDIA's current driver fails.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
ext_transform_feedback-api-errors: Silence _GNU_SOURCE redefined warning.

Fixes GCC warning.

api-errors.c:51: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: Brian Paul <brianp@vmware.com>
util: Fix GCC format-security warnings.

This patch fixes these GCC warnings.

piglit-framework-gl.c: In function ‘piglit_run_selected_subtests’:
piglit-framework-gl.c:294:12: warning: format not a string literal and no format arguments [-Wformat-security]
            subtest->name);
            ^
piglit-framework-gl.c:305:12: warning: format not a string literal and no format arguments [-Wformat-security]
            all_subtests[i].name);
            ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
cmake: Check for asprintf.

Newer versions of MinGW provide asprintf in stdio.h. Do not define
asprintf if it already exists.

This patch fixes the Fedora 20 MinGW build.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Tested-by: Brian Paul <brianp@vmware.com>
Fix concurrency bug.

Commit d525a0cededab9eff43d7597a3593d843428a68b introduces a bug into
the -1/--no-concurrency option that causes only tests exculsively marked
as non-concurrent to be run.

This patch addresses that bug, by adding all tests to a pool with a
single thread, rather than only adding the tests explicitly requesting serial
run when using the -1/--no-concurrency

bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73018
Tested-by: Vinson Lee <vlee@freedesktop.org>
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
fbo-generatemipmap-formats: Fix uninitialized variable warnings.

Fix GCC maybe-uninitialized warnings.

fbo-generatemipmap-formats.c: In function 'test_format':
fbo-generatemipmap-formats.c:112:15: warning: 'format' may be used uninitialized in this function [-Wmaybe-uninitialized]
   glTexImage2D(GL_TEXTURE_2D, i, internalformat,
               ^
fbo-generatemipmap-formats.c:80:15: note: 'format' was declared here
  GLenum type, format;
               ^
fbo-generatemipmap-formats.c:112:15: warning: 'type' may be used uninitialized in this function [-Wmaybe-uninitialized]
   glTexImage2D(GL_TEXTURE_2D, i, internalformat,
               ^
fbo-generatemipmap-formats.c:80:9: note: 'type' was declared here
  GLenum type, format;
         ^
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
clipflat: Fix uninitialized variable warning.

Fix GCC maybe-uninitialized warning.

clipflat.c: In function 'reportFailure.isra.0':
clipflat.c:374:10: warning: 'd' may be used uninitialized in this function [-Wmaybe-uninitialized]
  snprintf(msg1, sizeof(msg1), "clipflat: Failure for %s(%s),"
          ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
fbo-depthstencil: Fix uninitialized variable warning.

Fix GCC maybe-uninitialized warning.

fbo-depthstencil.c: In function 'piglit_display':
fbo-depthstencil.c:483:2: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return res;
  ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
fbo-depth: Fix uninitialized variable warning.

Fix GCC maybe-uninitialized warning.

fbo-depth.c: In function 'piglit_display':
fbo-depth.c:314:2: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return res;
  ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
piglit-resume.py: Fix bug in resume

This patch removes an additional JSONWriter.close_dict() call. This
extra call closed the tests dictionary after writing the tests from the
run into it; meaning when the JSONWriter instance is passed into
TestProfile.run() the tests dictionary is already closed and new tests
are not written into the root dictionary.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
framework/status.py: Fix pep8 errors

This corrects whitespace problems.
piglit-resume.py: pep8 fixes

This fixes pep8 whitespace errors

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
piglit-summary.py: pep8 fixes

Fix pep8 whitespace errors

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
framework/core.py: pep8 fixes

fixes pep8 whitespace errors

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