From: Pyry Haulos Date: Thu, 11 Aug 2016 20:32:47 +0000 (-0700) Subject: Fix ext check in EXT_draw_buffers_indexed negative tests X-Git-Tag: upstream/0.1.0~745^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cdfbadd0238044279cbc928bac9d895b002bcca6;p=platform%2Fupstream%2FVK-GL-CTS.git Fix ext check in EXT_draw_buffers_indexed negative tests Bug: 30738817 Change-Id: I6da9531ff44273d9d6606a12abcd3268dea314e4 --- diff --git a/modules/gles31/functional/es31fNegativeFragmentApiTests.cpp b/modules/gles31/functional/es31fNegativeFragmentApiTests.cpp index 0a5ad9e..1410aea 100644 --- a/modules/gles31/functional/es31fNegativeFragmentApiTests.cpp +++ b/modules/gles31/functional/es31fNegativeFragmentApiTests.cpp @@ -161,8 +161,8 @@ void blend_equationi (NegativeTestContext& ctx) { glw::GLint maxDrawBuffers = -1; - if (!contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)) && !ctx.getContextInfo().isExtensionSupported("GL_KHR_blend_equation_advanced")) - throw tcu::NotSupportedError("GL_KHR_blend_equation_advanced is not supported", DE_NULL, __FILE__, __LINE__); + if (!contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)) && !ctx.getContextInfo().isExtensionSupported("GL_EXT_draw_buffers_indexed")) + throw tcu::NotSupportedError("GL_EXT_draw_buffers_indexed is not supported", DE_NULL, __FILE__, __LINE__); ctx.glGetIntegerv(GL_MAX_DRAW_BUFFERS, &maxDrawBuffers); ctx.beginSection("GL_INVALID_ENUM is generated if mode is not GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MAX or GL_MIN."); @@ -181,8 +181,8 @@ void blend_equation_separatei (NegativeTestContext& ctx) { glw::GLint maxDrawBuffers = -1; - if (!contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)) && !ctx.getContextInfo().isExtensionSupported("GL_KHR_blend_equation_advanced")) - throw tcu::NotSupportedError("GL_KHR_blend_equation_advanced is not supported", DE_NULL, __FILE__, __LINE__); + if (!contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)) && !ctx.getContextInfo().isExtensionSupported("GL_EXT_draw_buffers_indexed")) + throw tcu::NotSupportedError("GL_EXT_draw_buffers_indexed is not supported", DE_NULL, __FILE__, __LINE__); ctx.glGetIntegerv(GL_MAX_DRAW_BUFFERS, &maxDrawBuffers); ctx.beginSection("GL_INVALID_ENUM is generated if modeRGB is not GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MAX or GL_MIN."); @@ -229,8 +229,8 @@ void blend_funci (NegativeTestContext& ctx) { glw::GLint maxDrawBuffers = -1; - if (!contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)) && !ctx.getContextInfo().isExtensionSupported("GL_KHR_blend_equation_advanced")) - throw tcu::NotSupportedError("GL_KHR_blend_equation_advanced is not supported", DE_NULL, __FILE__, __LINE__); + if (!contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)) && !ctx.getContextInfo().isExtensionSupported("GL_EXT_draw_buffers_indexed")) + throw tcu::NotSupportedError("GL_EXT_draw_buffers_indexed is not supported", DE_NULL, __FILE__, __LINE__); ctx.glGetIntegerv(GL_MAX_DRAW_BUFFERS, &maxDrawBuffers); ctx.beginSection("GL_INVALID_ENUM is generated if either sfactor or dfactor is not an accepted value."); @@ -251,8 +251,8 @@ void blend_func_separatei (NegativeTestContext& ctx) { glw::GLint maxDrawBuffers = -1; - if (!glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)) && !ctx.getContextInfo().isExtensionSupported("GL_KHR_blend_equation_advanced")) - throw tcu::NotSupportedError("GL_KHR_blend_equation_advanced is not supported", DE_NULL, __FILE__, __LINE__); + if (!glu::contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)) && !ctx.getContextInfo().isExtensionSupported("GL_EXT_draw_buffers_indexed")) + throw tcu::NotSupportedError("GL_EXT_draw_buffers_indexed is not supported", DE_NULL, __FILE__, __LINE__); ctx.glGetIntegerv(GL_MAX_DRAW_BUFFERS, &maxDrawBuffers); ctx.beginSection("GL_INVALID_ENUM is generated if srcRGB, dstRGB, srcAlpha, or dstAlpha is not an accepted value.");