<Test name="get_renderbuffer_parameteriv">
<TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
</Test>
+ <Test name="get_internalformativ">
+ <TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
+ </Test>
<Test name="get_queryiv">
<TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
</Test>
dEQP-GLES31.functional.debug.negative_coverage.get_error.state.get_buffer_parameteri64v
dEQP-GLES31.functional.debug.negative_coverage.get_error.state.get_buffer_pointerv
dEQP-GLES31.functional.debug.negative_coverage.get_error.state.get_renderbuffer_parameteriv
+dEQP-GLES31.functional.debug.negative_coverage.get_error.state.get_internalformativ
dEQP-GLES31.functional.debug.negative_coverage.get_error.state.get_queryiv
dEQP-GLES31.functional.debug.negative_coverage.get_error.state.get_query_objectuiv
dEQP-GLES31.functional.debug.negative_coverage.get_error.state.get_synciv
# Bug 20013546
dEQP-GLES31.functional.debug.negative_coverage.get_error.texture.compressedtexsubimage3d_invalid_buffer_target
-# Bug 20005726
-dEQP-GLES31.functional.debug.negative_coverage.get_error.state.get_internalformativ
-
# Bug 19897810
dEQP-GLES31.functional.copy_image.*srgb*renderbuffer
#include "es31fNegativeStateApiTests.hpp"
#include "gluCallLogWrapper.hpp"
+#include "gluContextInfo.hpp"
#include "gluShaderProgram.hpp"
#include "glwDefs.hpp"
ctx.endSection();
ctx.beginSection("GL_INVALID_ENUM is generated if internalformat is not color-, depth-, or stencil-renderable.");
- ctx.glGetInternalformativ (GL_RENDERBUFFER, GL_RG8_SNORM, GL_NUM_SAMPLE_COUNTS, 16, ¶ms[0]);
- ctx.expectError (GL_INVALID_ENUM);
+
+ if (!ctx.getContextInfo().isExtensionSupported("GL_EXT_render_snorm"))
+ {
+ ctx.glGetInternalformativ (GL_RENDERBUFFER, GL_RG8_SNORM, GL_NUM_SAMPLE_COUNTS, 16, ¶ms[0]);
+ ctx.expectError (GL_INVALID_ENUM);
+ }
+
ctx.glGetInternalformativ (GL_RENDERBUFFER, GL_COMPRESSED_RGB8_ETC2, GL_NUM_SAMPLE_COUNTS, 16, ¶ms[0]);
ctx.expectError (GL_INVALID_ENUM);
ctx.endSection();