From: Tapani Pälli Date: Mon, 28 Aug 2017 06:20:53 +0000 (+0300) Subject: Require EGL_KHR_gl_colorspace for wide_color tests. X-Git-Tag: upstream/0.1.0^2^2~9^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a3edba962ff9efe07a759bfdc763e50d5400ecc;p=platform%2Fupstream%2FVK-GL-CTS.git Require EGL_KHR_gl_colorspace for wide_color tests. These tests utilize enum EGL_GL_COLORSPACE_KHR which is introduced by EGL_KHR_gl_colorspace extension, check first for support and skip the test if extension is not supported. v2: loosen the check, only check when enum in use (Courtney) Change-Id: I891a6fdcce49ac6dcd42577076d4cf64a143dd38 Signed-off-by: Tapani Pälli --- diff --git a/modules/egl/teglWideColorTests.cpp b/modules/egl/teglWideColorTests.cpp index 9a5cf71..4508433 100644 --- a/modules/egl/teglWideColorTests.cpp +++ b/modules/egl/teglWideColorTests.cpp @@ -605,6 +605,9 @@ void WideColorSurfaceTest::init (void) break; } + if (m_colorSpace != DE_NULL && !eglu::hasExtension(egl, m_eglDisplay, "EGL_KHR_gl_colorspace")) + TCU_THROW(NotSupportedError, "EGL_KHR_gl_colorspace is not supported"); + switch (m_colorSpace) { case EGL_GL_COLORSPACE_DISPLAY_P3_EXT: checkDisplayP3Support();