From ed2ab05837ebe94950ab46e9d7d8e56de1685df0 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 8 Sep 2017 23:26:15 -0700 Subject: [PATCH] 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 Bug: b/75898891 Change-Id: I9d6b3fba892288354620ecbbc51ef7a351507e43 (cherry picked from commit f5bc215a968512ba967ce68cc3640c45bc776f2c) --- modules/gles31/functional/es31fFboSRGBWriteControlTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.7.4