Require GL_EXT_sRGB_write_control for GL_FRAMEBUFFER_SRGB enable/disable
authorKenneth Graunke <kenneth.w.graunke@intel.com>
Sat, 9 Sep 2017 06:26:15 +0000 (23:26 -0700)
committerKenneth Graunke <kenneth.w.graunke@intel.com>
Sat, 9 Sep 2017 06:32:51 +0000 (23:32 -0700)
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

modules/gles31/functional/es31fFboSRGBWriteControlTests.cpp

index b4ebcac..a741c4e 100644 (file)
@@ -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)