getteximage-targets: Refactor and cleanup with generalized texture targets

Reviewed-by: Chia-I Wu <olv@lunarg.com>
getteximage-targets: Add read texture image into PBO case for each target

Reviewed-by: Chia-I Wu <olv@lunarg.com>
arb_shader_atomic_counters: Import common helper functions.

Reviewed-by: Eric Anholt <eric@anholt.net>
arb_shader_atomic_counters: Import GLSL parser tests.

Reviewed-by: Eric Anholt <eric@anholt.net>
arb_shader_atomic_counters: Test the atomic counter query functions.

v2: Drop #define L, use a table instead of coding each test (changes
    by anholt, acked by Francisco)

Reviewed-by: Eric Anholt <eric@anholt.net>
arb_shader_atomic_counters: Test dynamic indexing of atomic counter arrays.

v2: Drop #define L (changes by anholt, acked by Francisco)

Reviewed-by: Eric Anholt <eric@anholt.net>
arb_shader_atomic_counters: Test the buffer binding API functions.

v2: Drop #define L (changes by anholt, acked by Francisco)

Reviewed-by: Eric Anholt <eric@anholt.net>
arb_shader_atomic_counters: Test that atomics vs default uniform block.

v2: Drop #define L (changes by anholt, acked by Francisco)

Reviewed-by: Eric Anholt <eric@anholt.net>
arb_shader_atomic_counters: Test atomic ops vs discard.

v2: Drop #define L (changes by anholt, acked by Francisco), don't make
    a big window when we don't draw to it.

Reviewed-by: Eric Anholt <eric@anholt.net>
arb_shader_atomic_counters: Test atomic counters as function arguments.

v2: Don't make a big window when we don't draw to it, and just report
    the result from init() (changes by anholt, acked by Francisco).

Reviewed-by: Eric Anholt <eric@anholt.net>
arb_shader_atomic_counters: Test shaders at and beyond the limits.

v2: Drop v3.1 check that's guaranteed by the test config, and add the
    0-minimum maximums to make sure that the getters are at least
    implemented (changes by anholt, acked by Francisco).

Reviewed-by: Eric Anholt <eric@anholt.net>
arb_shader_atomic_counters: Test the minimum maximums defined by the spec.

v2: Drop v3.1 check that's guaranteed by the test config, and add the
    0-minimum maximums to make sure that the getters are at least
    implemented (changes by anholt, acked by Francisco).

Reviewed-by: Eric Anholt <eric@anholt.net>
arb_shader_atomic_counters: Test linking with conflicting locations.

v2: Drop v3.1 check that's guaranteed by the test config, and drop the
    #define L.  (changes by anholt, acked by Francisco).

Reviewed-by: Eric Anholt <eric@anholt.net>
arb_shader_atomic_counters: Test that atomic built-ins execute the expected operations on memory.

v2: Drop v3.1 check that's guaranteed by the test config, drop #define
    L, and report from init() since we don't draw to the screen.
    (changes by anholt, acked by Francisco).

Reviewed-by: Eric Anholt <eric@anholt.net>
arb_shader_atomic_counters: Test the atomicity of atomic built-in functions.

v2: Drop v3.1 check that's guaranteed by the test config, shrink the
    window, and report from init() since we don't draw to the screen.
    (changes by anholt, acked by Francisco).

Reviewed-by: Eric Anholt <eric@anholt.net>
Fix deprecation warnings from XKeycodeToKeysym().

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
arb_gpu_shader5: Rename `signed` to `test_signed`.

nVIDIA's compiler considers `signed` to be a reserved word and so
refuses to compile these shaders. Whether that's sensible or not,
we'd like to see any real failures in these tests instead.

V2: Use 'test_signed' rather than 'signed_'

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
glean: Fix fbo errors case

If the framebuffer has no attachments at all, the first incomplete
status generated is FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT.

Adjust the tests for FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER and
FRAMEBUFFER_INCOMPLETE_READ_BUFFER to avoid tripping over this, by
adding a depth renderbuffer attachment.

This extra attachment is chosen to avoid imposing additional
requirements -- multiple color attachments are not required, nor
are depth textures.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76579
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Brian Paul <brianp@vmware.com>
ARB_explicit_uniform_location: test inactive uniform interaction

Test has a shader with only one uniform which is not used. Test checks
that there is no error when glUniform1f is called to update its value.

Test passes on GTX 660 running the Nvidia proprietary driver for Linux,
version 319.32.

v2: remove test for glGetUniformLocation, this test tests only
    glUniform call interaction

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
dlist-multidrawarrays: test that glMultiDrawArrays works in a display list

v2: Also test GL_COMPILE_AND_EXECUTE mode.

Reviewed-by: Eric Anholt <eric@anholt.net>