glsl-1.30: test unsigned vs signed in switch statement

v2: add spec citations (Matt)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Hook up two new EXT_packed_depth_stencil tests added recently

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
framework/summary/html: Prevent `\` in URLs.

It's fine for URLs to have `\` directory separators when viewing the
HTML files on Windows.  But if one moves the HTML report to a Linux
machine or puts it on a web-server and accesses it from a Linux machine
then links with `\` in them will become dead.

This change prevents that by always replacing `\` with `/` in URLs.

(There might be an easier way to achieve this than to have so many
instances of `foo.replace('\\', '/')`.  For example, it might be easier
to do this replacement when loading the results.  On the other hand,
there are several places that use os.path, so it might not solve the
issue completely neither.)

v2: Avoid wrong backward/forward terminology in comment, as pointed out
by Brian.
Test using glTexSubImage2D with packed depth-stencil textures

This adds a test for updating a sub-region of a texture created with
the GL_EXT_packed_depth_stencil extension.

Currently this triggers a bug on the i965 driver for which there is a
patch on the Mesa list here:

http://lists.freedesktop.org/archives/mesa-dev/2014-June/060783.html

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
cl-api-create-context-from-type: Remove unused variables.

This patch fixes these GCC warnings.

create-context-from-type.c: In function ‘piglit_cl_test’:
create-context-from-type.c:173:24: warning: variable ‘invalid_platform_context_properties’ set but not used [-Wunused-but-set-variable]
  cl_context_properties invalid_platform_context_properties[] = {
                        ^
create-context-from-type.c:156:13: warning: unused variable ‘cl_ctx’ [-Wunused-variable]
  cl_context cl_ctx;
             ^
create-context-from-type.c:155:9: warning: unused variable ‘errNo’ [-Wunused-variable]
  cl_int errNo;
         ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
cl-program-tester: Fix regexec usage.

This patch fixes this GCC warning.

program-tester.c: In function ‘parse_name’:
program-tester.c:1131:2: warning: passing argument 4 of ‘regexec’ from incompatible pointer type [enabled by default]
  if (!regexec(&regex, input, 1, &pmatch, 0)) {
  ^
program-tester.c:33:0:
/usr/include/regex.h:578:12: note: expected ‘struct regmatch_t * __restrict__’ but argument is of type ‘struct regmatch_t (*)[1]’
 extern int regexec (const regex_t *__restrict __preg,
            ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
arb_sample_shading: make sure gl_SampleMask has no effect when no ms

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
ARB_texture_query_levels/*nomips: fix the tests

Yes, the result of the function must be non-zero but is otherwise undefined.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_arrays_of_arrays: initializer and constructor tests

Test results are from the following hardware/driver combinations:

AMD Radeon HD 6670 - Catalyst 13.251 OpenGL 4.3
Nvidia GeForce 210 - NVIDIA 331.20 OpenGL 3.3
Intel Ivy Bridge - Mesa 10.1(815e064) with ARB_arrays_of_arrays enabled

constructor-array-array-var.vert
AMD: pass
Nvidia: pass
Intel: pass

constructor-array-var-array.vert
AMD: pass
Nvidia: pass
Intel: pass

constructor-invalid.vert
AMD: pass
Nvidia: pass
Intel: pass

constructor-invalid2.vert
AMD: pass
Nvidia: pass
Intel: pass

constructor-var-array-array.vert
AMD: pass
Nvidia: pass
Intel: pass

initialization-invalid.vert
AMD: crash
Nvidia: pass
Intel: pass

initialization-invalid2.vert
AMD: pass
Nvidia: pass
Intel: pass

initialization-invalid3.vert
AMD: pass
Nvidia: pass
Intel: pass

initialization-invalid4.vert
AMD: pass
Nvidia: pass
Intel: pass

initializer-array-array-var.vert
AMD: pass
Nvidia: pass
Intel: pass

initializer-array-array-var2.vert
AMD: pass
Nvidia: pass
Intel: pass

initializer-array-var-array.vert
AMD: pass
Nvidia: pass
Intel: pass

initializer-array-var-array2.vert
AMD: pass
Nvidia: pass
Intel: pass

initializer-var-array-array.vert
AMD: pass
Nvidia: pass
Intel: pass

initializer-var-array-array2.vert
AMD: pass
Nvidia: pass
Intel: pass

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_arrays_of_arrays: add more initializer tests

Test results are from the following hardware/driver combinations:

AMD Radeon HD 6670 - Catalyst 13.251 OpenGL 4.3
Nvidia GeForce 210 - NVIDIA 331.20 OpenGL 3.3
Intel Ivy Bridge - Mesa 10.1(815e064) with ARB_arrays_of_arrays enabled

initializer-dec-list-type-array-array-var1-var2.vert
AMD: pass
Intel: pass

initializer-dec-list-type-array-var1-array-var2-array.vert
AMD: pass
Intel: pass

initializer-dec-list-type-var1-array-array-var2-array-array.vert
AMD: pass
Intel: pass

initializer-struct-field-array-array-var.vert
AMD: pass
Nvidia: pass
Intel: pass

initializer-struct-field-array-var-array.vert
AMD: pass
Nvidia: pass
Intel: pass

initializer-struct-field-array-var-array2.vert
AMD: pass
Intel: pass

initializer-struct-field-dec-list-array-array-var1-var2.vert
AMD: pass
Intel: pass

initializer-struct-field-dec-list-array-var1-array-var2.vert
AMD: pass
Intel: pass

initializer-struct-field-dec-list-array-var1-var2-array.vert
AMD: pass
Intel: pass

initializer-struct-field-var-array-array.vert
AMD: pass
Nvidia: pass
Intel: pass

initializer-three-dimensions.vert
AMD: pass
Nvidia: pass
Intel: pass

initializer-three-dimensions2.vert
AMD: pass
Nvidia: pass
Intel: pass

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_arrays_of_arrays: add more constructor tests

Test results are from the following hardware/driver combinations:

AMD Radeon HD 6670 - Catalyst 13.251 OpenGL 4.3
Nvidia GeForce 210 - NVIDIA 331.20 OpenGL 3.3
Intel Ivy Bridge - Mesa 10.1(815e064) with ARB_arrays_of_arrays enabled

constructor-arrays-of-arrays-same-size.vert
AMD: pass
Nvidia: pass
Intel: pass

constructor-invalid-assignment.vert
AMD: crash
Nvidia: pass
Intel: pass

constructor-invalid-dimensions-mismatch.vert
AMD: pass
Nvidia: pass
Intel: pass

constructor-invalid-element-to-big.vert
AMD: pass
Nvidia: pass
Intel: pass

constructor-invalid-type.vert
AMD: pass
Nvidia: pass
Intel: pass

constructor-three-dimensions.vert
AMD: pass
Nvidia: pass
Intel: pass

constructor-unsized.vert
AMD: pass
Nvidia: pass
Intel: pass

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_arrays_of_arrays: function parameter and comparision tests

Test results are from the following hardware/driver combinations:

AMD Radeon HD 6670 - Catalyst 13.251 OpenGL 4.3
Nvidia GeForce 210 - NVIDIA 331.20 OpenGL 3.3
Intel Ivy Bridge - Mesa 10.1(815e064) with ARB_arrays_of_arrays enabled

equal-implicit-size.vert
AMD: pass
Nvidia: pass
Intel: pass

equal-mismatched-size.vert
AMD: pass
Nvidia: pass
Intel: pass

equal.vert
AMD: pass
Nvidia: pass
Intel: crash (arrays of arrays not supported for uniforms yet)

function-parameter-declaration-array-array-var.vert
AMD: pass
Nvidia: pass
Intel: pass

function-parameter-declaration-array-var-array.vert
AMD: pass
Nvidia: pass
Intel: pass

function-parameter-declaration-var-array-array.vert
AMD: pass
Nvidia: pass
Intel: pass

function-parameter-definition-array-array-var.vert
AMD: pass
Nvidia: pass
Intel: pass

function-parameter-definition-array-var-array.vert
AMD: pass
Nvidia: pass
Intel: pass

function-parameter-definition-var-array-array.vert
AMD: pass
Nvidia: pass
Intel: pass

function-parameter-unsized.vert
AMD: pass
Nvidia: pass
Intel: pass

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_arrays_of_arrays: input and output tests

Test results are from the following hardware/driver combinations:

AMD Radeon HD 6670 - Catalyst 13.251 OpenGL 4.3
Nvidia GeForce 210 - NVIDIA 331.20 OpenGL 3.3
Intel Ivy Bridge - Mesa 10.1(815e064) with ARB_arrays_of_arrays enabled

input-array-array-var.vert
AMD: pass
Nvidia: pass
Intel: crash

input-array-var-array.vert
AMD: pass
Nvidia: pass
Intel: crash

input-var-array-array.vert
AMD: pass
Nvidia: pass
Intel: crash

output-array-array-var.frag
AMD: pass
Nvidia: pass
Intel: pass

output-array-array-var.vert
AMD: pass
Nvidia: pass
Intel: pass

output-array-var-array.frag
AMD: pass
Nvidia: pass
Intel: pass

output-array-var-array.vert
AMD: pass
Nvidia: pass
Intel: pass

output-var-array-array.frag
AMD: pass
Nvidia: pass
Intel: pass

output-var-array-array.vert
AMD: pass
Nvidia: pass
Intel: pass

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_arrays_of_arrays: interface and struct tests

Test results are from the following hardware/driver combinations:

AMD Radeon HD 6670 - Catalyst 13.251 OpenGL 4.3
Nvidia GeForce 210 - NVIDIA 331.20 OpenGL 3.3
Intel Ivy Bridge - Mesa 10.1(815e064) with ARB_arrays_of_arrays enabled

arrays-of-struct-with-field-arrays.vert
AMD: pass
Nvidia: pass
Intel: pass

interface-field-array-array-var.vert
AMD: pass
Nvidia: pass
Intel: pass

interface-field-array-var-array.vert
AMD: pass
Nvidia: pass
Intel: pass

interface-field-maxbounds-access-array-array-var.geom
AMD: pass
Nvidia: pass
Intel: pass

interface-field-maxbounds-access-array-var-array.geom
AMD: pass
Nvidia: pass
Intel: pass

interface-field-maxbounds-access-var-array-array.geom
AMD: pass
Nvidia: pass
Intel: pass

interface-field-outofbounds-access-array-array-var.geom
AMD: pass
Nvidia: fail (Nvidia only warns for outofbounds)
Intel: pass

interface-field-outofbounds-access-array-var-array.geom
AMD: pass
Nvidia: fail (Nvidia only warns for outofbounds)
Intel: pass

interface-field-outofbounds-access-var-array-array.geom
AMD: pass
Nvidia: fail (Nvidia only warns for outofbounds)
Intel: pass

interface-field-var-array-array.vert
AMD: pass
Nvidia: pass
Intel: pass

interface-maxbounds.vert
AMD: pass
Nvidia: pass
Intel: crash

interface-outofbounds.vert
AMD: pass
Nvidia: fail (Nvidia only warns for outofbounds)
Intel: pass

interface.vert
AMD: pass
Nvidia: pass
Intel: pass

structure-field-array-array-var.frag
AMD: pass
Nvidia: pass
Intel: pass

structure-field-array-var-array.frag
AMD: pass
Nvidia: pass
Intel: pass

structure-field-var-array-array.frag
AMD: pass
Nvidia: pass
Intel: pass

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_arrays_of_arrays: length and bounds tests

Test results are from the following hardware/driver combinations:

AMD Radeon HD 6670 - Catalyst 13.251 OpenGL 4.3
Nvidia GeForce 210 - NVIDIA 331.20 OpenGL 3.3
Intel Ivy Bridge - Mesa 10.1(815e064) with ARB_arrays_of_arrays enabled

length-array-array-var.vert
AMD: pass
Nvidia: pass
Intel: pass

length-array-var-array.vert
AMD: pass
Nvidia: pass
Intel: pass

length-var-array-array.vert
AMD: pass
Nvidia: pass
Intel: pass

maxbounds-access-array-array-var.vert
AMD: pass
Nvidia: pass
Intel: pass

maxbounds-access-array-var-array.vert
AMD: pass
Nvidia: pass
Intel: pass

maxbounds-access-var-array-array.vert
AMD: pass
Nvidia: pass
Intel: pass

outofbounds-access-array-array-var.vert
AMD: pass
Nvidia: fail (Nvidia only warns for outofbounds)
Intel: pass

outofbounds-access-array-var-array.vert
AMD: pass
Nvidia: fail (Nvidia only warns for outofbounds)
Intel: pass

outofbounds-access-var-array-array.vert
AMD: pass
Nvidia: fail (Nvidia only warns for outofbounds)
Intel: pass

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_arrays_of_arrays: redeclaration and subroutine tests

Test results are from the following hardware/driver combinations:

AMD Radeon HD 6670 - Catalyst 13.251 OpenGL 4.3
Nvidia GeForce 210 - NVIDIA 331.20 OpenGL 3.3
Intel Ivy Bridge - Mesa 10.1(815e064) with ARB_arrays_of_arrays enabled

redeclaration-initializer.vert
AMD: fail
Nvidia: pass
Intel: pass

redeclaration-too-small.vert
AMD: pass
Nvidia: fail (Nvidia only warns for outofbounds)
Intel: pass

redeclaration-too-small2.vert
AMD: pass
Nvidia: fail (Nvidia only warns for outofbounds)
Intel: pass

redeclaration.vert
AMD: fail
Nvidia: pass
Intel: pass

redeclaration2.vert
AMD: pass
Nvidia: pass
Intel: pass

subroutine.vert
AMD: pass
Nvidia: skip
Intel: skip

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_arrays_of_arrays: assignment tests

Test results are from the following hardware/driver combinations:

AMD Radeon HD 6670 - Catalyst 13.251 OpenGL 4.3
Nvidia GeForce 210 - NVIDIA 331.20 OpenGL 3.3
Intel Ivy Bridge - Mesa 10.1(815e064) with ARB_arrays_of_arrays enabled

assignment-invalid-implicit-sized.vert
AMD: fail
Nvidia: fail
Intel: pass

assignment-1d-to-3d.vert
AMD: pass
Nvidia: pass
Intel: pass

assignment-2d-to-3d-from-3d.vert
AMD: pass
Nvidia: pass
Intel: pass

assignment-2d-to-3d.vert
AMD: pass
Nvidia: pass
Intel: pass

assignment-array-array-var-array.vert
AMD: pass
Nvidia: pass
Intel: pass

assignment-invalid-1d-to-3d.vert
AMD: pass
Intel: pass

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_arrays_of_arrays: builtin test

Test results are from the following hardware/driver combinations:

AMD Radeon HD 6670 - Catalyst 13.251 OpenGL 4.3
Nvidia GeForce 210 - NVIDIA 331.20 OpenGL 3.3
Intel Ivy Bridge - Mesa 10.1(815e064) with ARB_arrays_of_arrays enabled

gl_TexCoord-invalid-multidim.vert
AMD: pass
Nvidia: fail
Intel: pass

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_arrays_of_arrays: uniform tests

Test results are from the following hardware/driver combinations:

AMD Radeon HD 6670 - Catalyst 13.251 OpenGL 4.3
Nvidia GeForce 210 - NVIDIA 331.20 OpenGL 3.3
Intel Ivy Bridge - Mesa 10.1(815e064) with ARB_arrays_of_arrays enabled

uniform-array-array-var.vert
AMD: pass
Nvidia: pass
Intel: crash

uniform-array-var-array.vert
AMD: pass
Nvidia: pass
Intel: crash

uniform-unsized-array-array-var.vert
AMD: pass
Nvidia: pass
Intel: crash

uniform-unsized-array-var-array.vert
AMD: pass
Nvidia: pass
Intel: crash

uniform-unsized-invalid-array-array-var.vert
AMD: pass
Nvidia: fail
Intel: pass

uniform-unsized-invalid-array-array-var2.vert
AMD: pass
Nvidia: fail
Intel: pass

uniform-unsized-invalid-array-var-array.vert
AMD: pass
Nvidia: fail
Intel: pass

uniform-unsized-invalid-array-var-array2.vert
AMD: pass
Nvidia: fail
Intel: pass

uniform-unsized-invalid-var-array-array.vert
AMD: pass
Nvidia: fail
Intel: pass

uniform-unsized-invalid-var-array-array2.vert
AMD: pass
Nvidia: fail
Intel: pass

uniform-unsized-var-array-array.vert
AMD: pass
Nvidia: pass
Intel: crash

uniform-var-array-array.vert
AMD: pass
Nvidia: pass
Intel: crash

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_uniform_buffer_object: add new rendering test

Add a test that actually draws something with uniform buffer objects
along the lines of what an application might do.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>