Add test glsl-uniform-out-of-bounds-2.c

Check for consistent reporting of active array elements from
glGetActiveUniform and glGetUniformLocation, and check for correct
error reporting when reading/writing bogus uniform locations.

v2: Reorganized code, new comments and messages to make clearer.
    Adopt reviewer's suggestions about ARRAY_SIZE, formatting,
    piglit_check_gl_error, window size.
v3: Made concurrent, removed write/read/verify uniform test, and
    renamed variables per reviewer comments.
v4: Fixed up remaining style nits, expand a comment (by anholt)
ext_framebuffer_multisample: Initialize InterpolationTestPattern member.

Fixes uninitialized scalar field defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
draw-pixels: Ensure allocPixels returns an initialized value.

Fixes uninitialized pointer read defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
util: Ensure endptr is initialized.

Fixes uninititalized pointer read defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
fbo-blending-formats: Only query GL_TEXTURE_xxx_TYPE when GL_EXT_texture_snorm is supported

Otherwise the test will fail due to GL_INVALID_ENUM errors.

Fixes fdo bug 71136.

Tested-by: Vinson Lee <vlee@freedesktop.org>
texelFetch: fix to run on gl 3.1 / core contexts.

ported from textureSize
Signed-off-by: Dave Airlie <airlied@redhat.com>
ubo/glsl-1.40: fix more tests to run in core context

Makes these tests run on softpipe.

Signed-off-by: Dave Airlie <airlied@redhat.com>
ext_framebuffer_multisample: Initialize Sunburst member variables.

Fixes uninitialized scalar field defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
draw-pixels: Set pointer to NULL after free.

Fixes use after free defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
max-texture-size: Do not allocate memory for an unexpected target.

Fixes uninitialized scalar variable defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
texelFetch: Ensure level_image is initialized.

Fixes uninitialized pointer read defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
getteximage-formats: Ensure texel is initialized.

Fixes uninitialized scalar variable defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
texwrap: Add default cases with asserts.

Fixes uninitialized pointer read defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
glsl-1.40: fix tf no position to use a VBO

This lets the test run in a core profile fine.

Signed-off-by: Dave Airlie <airlied@redhat.com>
cl: Don't attempt to execute vector-arithmetic-[floating|integer].cl include files.

This corrects test failures after the all_cl.tests change last week.
Previously, tests were hard-coded, but now the test runner just runs each cl
and program_test file in the specified directories.

The .cl files in this commit were previously only included in
vector-arithmetic-*.program_test, never executed directly. They are missing a
config section, and are guaranteed to fail on their own.
cl: Fix warnings-as-errors CL test.

I had previously been under the impression that an unused variable would be
enough to trigger a warning and therefore get the test to pass.. I was wrong.

Now, we attempt to enable a made up extension name, which throws a warning and
causes the program to fail to build when the -Werror build option is present.
cl: Replace scalar-load-[float|uchar] with more comprehensive tests.

Move the kernel declarations into an include file and then create separate
program_test files for char/uchar/short/ushort/int/uint/long/ulong/float.

I'm not quite sure how to use #pragmas in a program_test configuration, so for
now I'm leaving out half/double data types.
util/gl: Add piglit-vbo.cpp to libpiglitutil_gles3

shader_runner will need this.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
shader_runner: Change version type from uint to struct

Throughout shader_runner, GL and GLSL versions were represented as uints.
This patch incrementally refactors the version representation to get us
closer to supporting GLES3 in shader_runner. It defines `struct version`
and updates shader_runner to consistently use the struct to represent GL
and GLSL versions.

A future commit will an 'es' field to the struct.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
shader_runner: Add new func version_compare()

The new function compares two `struct version`.
This patch replaces raw comparisons of version numbers with calls to the
new function.

We will need this function when `struct version` begins representing ES
versions.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>