From: Kenneth Graunke Date: Sat, 9 Sep 2017 06:26:15 +0000 (-0700) Subject: Require GL_EXT_sRGB_write_control for GL_FRAMEBUFFER_SRGB enable/disable X-Git-Tag: upstream/0.1.0^2^2~9^2~27^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5bc215a968512ba967ce68cc3640c45bc776f2c;p=platform%2Fupstream%2FVK-GL-CTS.git Require GL_EXT_sRGB_write_control for GL_FRAMEBUFFER_SRGB enable/disable This test required GL_EXT_sRGB_write_control or ES 3.2. But glEnable and glDisable of GL_FRAMEBUFFER_SRGB requires the extension - ES 3.2 doesn't provide that functionality. ES 3.2 implementations without the extension would fail. Now they report NotSupported. Affects: dEQP-GLES31.functional.fbo.srgb_write_control.framebuffer_srgb_enabled Components: AOSP Change-Id: I9d6b3fba892288354620ecbbc51ef7a351507e43 --- diff --git a/modules/gles31/functional/es31fFboSRGBWriteControlTests.cpp b/modules/gles31/functional/es31fFboSRGBWriteControlTests.cpp index b4ebcac..a741c4e 100644 --- a/modules/gles31/functional/es31fFboSRGBWriteControlTests.cpp +++ b/modules/gles31/functional/es31fFboSRGBWriteControlTests.cpp @@ -1509,8 +1509,8 @@ FboSRGBQueryCase::~FboSRGBQueryCase (void) void FboSRGBQueryCase::init (void) { // extension requirements for test - if (!glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 2)) && !m_context.getContextInfo().isExtensionSupported("GL_EXT_sRGB_write_control")) - TCU_THROW(NotSupportedError, "Test requires extension GL_EXT_sRGB_write_control or a context version equal or higher than 3.2"); + if (!m_context.getContextInfo().isExtensionSupported("GL_EXT_sRGB_write_control")) + TCU_THROW(NotSupportedError, "Test requires extension GL_EXT_sRGB_write_control"); } void FboSRGBQueryCase::deinit (void)