From: David Sodman Date: Thu, 18 May 2017 16:30:17 +0000 (-0700) Subject: Remove dEQP-GLES31.*vertex_array.*_invalid_map tests X-Git-Tag: upstream/0.1.0~150^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=428a2256159883c651a409c4e0cbe031953f4c4e;p=platform%2Fupstream%2FVK-GL-CTS.git Remove dEQP-GLES31.*vertex_array.*_invalid_map tests Tests made assumptions about GL error returned from glDrawElements* functions when passed a mapped buffer object, but, that error is not supported by the specification. Affects: dEQP-GLES31.*vertex_array.* Components: AOSP Bug: 37942569 Change-Id: Ic066dfbe717ff1e7741bec8ee870b09b99362dc7 --- diff --git a/android/cts/master/gles31-master.txt b/android/cts/master/gles31-master.txt index dfa6c6a..c593be6 100644 --- a/android/cts/master/gles31-master.txt +++ b/android/cts/master/gles31-master.txt @@ -18456,7 +18456,6 @@ dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_array dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_arrays_incomplete_primitive dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_elements dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_elements_base_vertex -dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_elements_base_vertex_invalid_map dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_elements_base_vertex_primitive_mode_mismatch dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_elements_invalid_program dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_elements_incomplete_primitive @@ -18467,13 +18466,11 @@ dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_eleme dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_elements_instanced_invalid_program dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_elements_instanced_incomplete_primitive dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_elements_instanced_base_vertex -dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_elements_instanced_base_vertex_invalid_map dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_elements_instanced_base_vertex_primitive_mode_mismatch dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_range_elements dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_range_elements_invalid_program dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_range_elements_incomplete_primitive dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_range_elements_base_vertex -dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_range_elements_base_vertex_invalid_map dEQP-GLES31.functional.debug.negative_coverage.callbacks.vertex_array.draw_range_elements_base_vertex_primitive_mode_mismatch dEQP-GLES31.functional.debug.negative_coverage.callbacks.state.enable dEQP-GLES31.functional.debug.negative_coverage.callbacks.state.disable @@ -18957,7 +18954,6 @@ dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_arrays_inva dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_arrays_incomplete_primitive dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_elements dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_elements_base_vertex -dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_elements_base_vertex_invalid_map dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_elements_base_vertex_primitive_mode_mismatch dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_elements_invalid_program dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_elements_incomplete_primitive @@ -18968,13 +18964,11 @@ dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_elements_in dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_elements_instanced_invalid_program dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_elements_instanced_incomplete_primitive dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_elements_instanced_base_vertex -dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_elements_instanced_base_vertex_invalid_map dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_elements_instanced_base_vertex_primitive_mode_mismatch dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_range_elements dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_range_elements_invalid_program dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_range_elements_incomplete_primitive dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_range_elements_base_vertex -dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_range_elements_base_vertex_invalid_map dEQP-GLES31.functional.debug.negative_coverage.log.vertex_array.draw_range_elements_base_vertex_primitive_mode_mismatch dEQP-GLES31.functional.debug.negative_coverage.log.state.enable dEQP-GLES31.functional.debug.negative_coverage.log.state.disable @@ -19457,7 +19451,6 @@ dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_array dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_arrays_incomplete_primitive dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_base_vertex -dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_base_vertex_invalid_map dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_base_vertex_primitive_mode_mismatch dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_invalid_program dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_incomplete_primitive @@ -19468,13 +19461,11 @@ dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_eleme dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_instanced_invalid_program dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_instanced_incomplete_primitive dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_instanced_base_vertex -dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_instanced_base_vertex_invalid_map dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_elements_instanced_base_vertex_primitive_mode_mismatch dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_range_elements dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_range_elements_invalid_program dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_range_elements_incomplete_primitive dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_range_elements_base_vertex -dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_range_elements_base_vertex_invalid_map dEQP-GLES31.functional.debug.negative_coverage.get_error.vertex_array.draw_range_elements_base_vertex_primitive_mode_mismatch dEQP-GLES31.functional.debug.negative_coverage.get_error.state.enable dEQP-GLES31.functional.debug.negative_coverage.get_error.state.disable diff --git a/modules/gles31/functional/es31fNegativeVertexArrayApiTests.cpp b/modules/gles31/functional/es31fNegativeVertexArrayApiTests.cpp index ffad380..e990455 100644 --- a/modules/gles31/functional/es31fNegativeVertexArrayApiTests.cpp +++ b/modules/gles31/functional/es31fNegativeVertexArrayApiTests.cpp @@ -701,24 +701,6 @@ void draw_elements_base_vertex (NegativeTestContext& ctx) ctx.endSection(); } -void draw_elements_base_vertex_invalid_map (NegativeTestContext& ctx) -{ - GLuint buf = 0; - GLfloat vertices[1]; - - ctx.beginSection("GL_INVALID_OPERATION is generated if a non-zero buffer object name is bound to an enabled array or the element array and the buffer object's data store is currently mapped."); - ctx.glGenBuffers(1, &buf); - ctx.glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, buf); - ctx.glBufferData(GL_ELEMENT_ARRAY_BUFFER, 10, 0, GL_STATIC_DRAW); - ctx.glMapBufferRange(GL_ELEMENT_ARRAY_BUFFER, 0, 5, GL_MAP_READ_BIT); - ctx.expectError(GL_NO_ERROR); - ctx.glDrawElementsBaseVertex(GL_POINTS, 1, GL_UNSIGNED_INT, vertices, 1); - ctx.expectError(GL_INVALID_OPERATION); - ctx.glUnmapBuffer(GL_ELEMENT_ARRAY_BUFFER); - ctx.glDeleteBuffers(1, &buf); - ctx.endSection(); -} - void draw_elements_base_vertex_primitive_mode_mismatch (NegativeTestContext& ctx) { GLfloat vertices[1]; @@ -1084,25 +1066,6 @@ void draw_elements_instanced_base_vertex (NegativeTestContext& ctx) ctx.glUseProgram(0); } -void draw_elements_instanced_base_vertex_invalid_map (NegativeTestContext& ctx) -{ - GLfloat vertices[1]; - GLuint buf = 0; - - ctx.beginSection("GL_INVALID_OPERATION is generated if a non-zero buffer object name is bound to an enabled array or the element array and the buffer object's data store is currently mapped."); - ctx.glGenBuffers(1, &buf); - ctx.glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, buf); - ctx.glBufferData(GL_ELEMENT_ARRAY_BUFFER, 10, 0, GL_STATIC_DRAW); - ctx.glMapBufferRange(GL_ELEMENT_ARRAY_BUFFER, 0, 5, GL_MAP_READ_BIT); - ctx.expectError(GL_NO_ERROR); - ctx.glDrawElementsInstancedBaseVertex(GL_POINTS, 1, GL_UNSIGNED_INT, vertices, 1, 1); - ctx.expectError(GL_INVALID_OPERATION); - ctx.glUnmapBuffer(GL_ELEMENT_ARRAY_BUFFER); - ctx.glDeleteBuffers(1, &buf); - ctx.endSection(); - -} - void draw_elements_instanced_base_vertex_primitive_mode_mismatch (NegativeTestContext& ctx) { GLfloat vertices[1]; @@ -1370,24 +1333,6 @@ void draw_range_elements_base_vertex (NegativeTestContext& ctx) ctx.glUseProgram(0); } -void draw_range_elements_base_vertex_invalid_map (NegativeTestContext& ctx) -{ - GLuint buf = 0; - GLfloat vertices[1]; - - ctx.beginSection("GL_INVALID_OPERATION is generated if a non-zero buffer object name is bound to an enabled array or the element array and the buffer object's data store is currently mapped."); - ctx.glGenBuffers(1, &buf); - ctx.glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, buf); - ctx.glBufferData(GL_ELEMENT_ARRAY_BUFFER, 10, 0, GL_STATIC_DRAW); - ctx.glMapBufferRange(GL_ELEMENT_ARRAY_BUFFER, 0, 5, GL_MAP_READ_BIT); - ctx.expectError(GL_NO_ERROR); - ctx.glDrawRangeElementsBaseVertex(GL_POINTS, 0, 1, 1, GL_UNSIGNED_INT, vertices, 1); - ctx.expectError(GL_INVALID_OPERATION); - ctx.glUnmapBuffer(GL_ELEMENT_ARRAY_BUFFER); - ctx.glDeleteBuffers(1, &buf); - ctx.endSection(); -} - void draw_range_elements_base_vertex_primitive_mode_mismatch (NegativeTestContext& ctx) { GLfloat vertices[1]; @@ -1428,7 +1373,6 @@ std::vector getNegativeVertexArrayApiTestFunctions () {draw_arrays_incomplete_primitive, "draw_arrays_incomplete_primitive", "Invalid glDrawArrays() usage" }, {draw_elements, "draw_elements", "Invalid glDrawElements() usage" }, {draw_elements_base_vertex, "draw_elements_base_vertex", "Invalid glDrawElementsBaseVertex() usage" }, - {draw_elements_base_vertex_invalid_map, "draw_elements_base_vertex_invalid_map" , "Invalid glDrawElementsBaseVertex() usage" }, {draw_elements_base_vertex_primitive_mode_mismatch, "draw_elements_base_vertex_primitive_mode_mismatch", "Invalid glDrawElementsBaseVertex() usage" }, {draw_elements_invalid_program, "draw_elements_invalid_program", "Invalid glDrawElements() usage" }, {draw_elements_incomplete_primitive, "draw_elements_incomplete_primitive", "Invalid glDrawElements() usage" }, @@ -1439,13 +1383,11 @@ std::vector getNegativeVertexArrayApiTestFunctions () {draw_elements_instanced_invalid_program, "draw_elements_instanced_invalid_program", "Invalid glDrawElementsInstanced() usage" }, {draw_elements_instanced_incomplete_primitive, "draw_elements_instanced_incomplete_primitive", "Invalid glDrawElementsInstanced() usage" }, {draw_elements_instanced_base_vertex, "draw_elements_instanced_base_vertex", "Invalid glDrawElementsInstancedBaseVertex() usage" }, - {draw_elements_instanced_base_vertex_invalid_map, "draw_elements_instanced_base_vertex_invalid_map", "Invalid glDrawElementsInstancedBaseVertex() usage" }, {draw_elements_instanced_base_vertex_primitive_mode_mismatch, "draw_elements_instanced_base_vertex_primitive_mode_mismatch", "Invalid glDrawElementsInstancedBaseVertex() usage" }, {draw_range_elements, "draw_range_elements", "Invalid glDrawRangeElements() usage" }, {draw_range_elements_invalid_program, "draw_range_elements_invalid_program", "Invalid glDrawRangeElements() usage" }, {draw_range_elements_incomplete_primitive, "draw_range_elements_incomplete_primitive", "Invalid glDrawRangeElements() usage" }, {draw_range_elements_base_vertex, "draw_range_elements_base_vertex", "Invalid glDrawRangeElementsBaseVertex() usage" }, - {draw_range_elements_base_vertex_invalid_map, "draw_range_elements_base_vertex_invalid_map", "Invalid glDrawRangeElementsBaseVertex() usage" }, {draw_range_elements_base_vertex_primitive_mode_mismatch, "draw_range_elements_base_vertex_primitive_mode_mismatch", "Invalid glDrawRangeElementsBaseVertex() usage" }, };