Fix uninitialized index array
authorCourtney Goeltzenleuchter <courtneygo@google.com>
Thu, 21 Nov 2019 17:07:41 +0000 (10:07 -0700)
committerCourtney Goeltzenleuchter <courtneygo@google.com>
Thu, 28 May 2020 13:26:40 +0000 (09:26 -0400)
commita0a1489bcc7a0049e7f53264a2c34fd960c98390
treeeea0ffbc342ab641d0ceb7a9ed1326b0a3547bb1
parent0266d78140a4a5c71e1ba5a0fb28608bf207dd9c
Fix uninitialized index array

The test is doing a glDrawRangeElements using uninitialized data for
the element array. ANGLE validates that the indices fall within the
specified range. Data needs to be initialized to ensure that happens.

The spec says:
It is an error for index values (other than the primitive restart index,
when primitive restart is enabled) to lie outside the range [start, end], but
implementations are not required to check for this. Such indices will cause
implementation-dependent behavior.

Either the test needs to allow for an error or initialize the data so
as to be valid for the call.

Affected Test:
    dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_range_elements

Components: OpenGL ES
VK-GL-CTS issue: 2118

Change-Id: I51f8abb86f088b67990001454bb00d59313200c2
(cherry picked from commit bf7a86af5a959c3f4ad39deabe8b396d8581470a)
modules/gles31/functional/es31fNegativeVertexArrayApiTests.cpp