gl-3.2-depth-tex-sampling: fix the test to expect "red" depth samples

I missed the language in section 3.8.7 about depth texture sampling.
Thanks, Marek.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
tests/util: Link with rt if PIGLIT_HAS_POSIX_CLOCK_MONOTONIC

If PIGLIT_HAS_POSIX_CLOCK_MONOTONIC, piglit-util.c will use clock_gettime,
so, make sure to link against -lrt, too.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Brian Paul <brianp@vmware.com>
NV_conditional_render: glBeginConditionalRenderNV begin zero

INVALID_VALUE should be genrated instead of INVALID_OPERATION

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
fbo-bind-renderbuffer:  Expect INVALID_OPERATION error instead of INVALID_VALUE

The spec clearly requires INVALID_OPERATION, so add a quotation from the
spec.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
depthstencil-render-miplevels: Add missing extension checks

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
sparse-samplers: Add missing extension checks

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
arb_fragment_program: Fix several copy-and-paste errors in minmax test

1. The extension check was wrong: GL_ARB_vertex_program instead of
GL_ARB_fragment_program.

2. The program query was wrong: GL_VERTEX_PROGRAM_ARB instead of
GL_FRAGMENT_PROGRAM_ARB.

3. The limit for GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB was wrong: 1 (the
vertex program limit) instead of 0.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
texwrap: Add missing extension checks

Also update the setting of has_texture_swizzle.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
fbo-incomplete: Fix GCC format-security warnings.

This patch fixes these GCC warnings.

fbo-incomplete.cpp: In function ‘bool invalid_1d_array_layer()’:
fbo-incomplete.cpp:304:57: warning: format not a string literal and no format arguments [-Wformat-security]
fbo-incomplete.cpp: In function ‘bool invalid_2d_array_layer()’:
fbo-incomplete.cpp:331:57: warning: format not a string literal and no format arguments [-Wformat-security]
fbo-incomplete.cpp: In function ‘bool invalid_cube_array_layer()’:
fbo-incomplete.cpp:358:57: warning: format not a string literal and no format arguments [-Wformat-security]

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
tests/util: Link with rt only if librt exists.

This patch fixes the OpenBSD build.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73332
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Test that a layered fbo can have attachments with different layer counts.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Test full framebuffer clear color with mismatched layer count.

GL 3.2 allows different framebuffer attachments to have different
layer counts.  Rendering to layers that do not exist in all
attachments is undefined; however, clearing the framebuffer should
still clear all layers of all attachments.

Reviewed-by: Matt Turner <mattst88@gmail.com>
glslparsertest: Test compute shaders.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Revert "framework: Add support for a test timeout"

This reverts commit ab2eb660925e3680e868c5f469a4ef32e6dd9a59.

Conflicts:
	framework/status.py
WIP: loop analysis tests
glapi: Rename ARB_compute_shader "LOCAL" -> "WORK_GROUP".

The piglit glapi files, which are derived from files published on
www.opengl.org, contained nonstandard names for two enums:
COMPUTE_LOCAL_WORK_SIZE and MAX_COMPUTE_LOCAL_INVOCATIONS.

The ARB_compute_shader spec, the OpenGL specs, and the OpenGL wiki all
agree that these should be called COMPUTE_WORK_GROUP_SIZE and
MAX_COMPUTE_WORK_GROUP_INVOCATIONS.  So rename them in piglit to be
consistent.
util: Add ARB_compute_shader support to piglit_get_gl_enum_name().
WIP: minmax test for ARB_compute_shader.
WIP: Test compilation rules related to compute shader layout qualifiers.
Test that compute shader work group sizes are properly bounds checked.