Allow ES 3.2 contexts to run sRGB write control unsupported test.
authorKenneth Graunke <kenneth.w.graunke@intel.com>
Sat, 9 Sep 2017 06:30:15 +0000 (23:30 -0700)
committerKenneth Graunke <kenneth.w.graunke@intel.com>
Sat, 9 Sep 2017 06:39:39 +0000 (23:39 -0700)
GL_EXT_sRGB_write_control functionality is not part of ES 3.2.
So there's no need to restrict this to older contexts.

Affects:
dEQP-GLES31.functional.fbo.srgb_write_control.framebuffer_srgb_unsupported_enum

Components: AOSP

Change-Id: Id437e220958c66acf65fd5c40004e1fde13fdf64

modules/gles31/functional/es31fFboSRGBWriteControlTests.cpp

index a741c4e..5cbdb0c 100644 (file)
@@ -1797,8 +1797,8 @@ FboSRGBUnsupportedEnumCase::~FboSRGBUnsupportedEnumCase (void)
 void FboSRGBUnsupportedEnumCase::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 to be unsupported and a context version less than 3.2");
+       if (m_context.getContextInfo().isExtensionSupported("GL_EXT_sRGB_write_control"))
+               TCU_THROW(NotSupportedError, "Test requires extension GL_EXT_sRGB_write_control to be unsupported");
 }
 
 void FboSRGBUnsupportedEnumCase::deinit (void)