Require EGL_KHR_gl_colorspace for wide_color tests
authorCourtney Goeltzenleuchter <courtneygo@google.com>
Tue, 12 Sep 2017 23:10:51 +0000 (17:10 -0600)
committerCourtney Goeltzenleuchter <courtneygo@google.com>
Tue, 12 Sep 2017 23:26:03 +0000 (17:26 -0600)
commitb446f2dd213eb697e8a968ba13873a15958e0352
tree7df88157c6416580772ea9ad5ace976da2f327de
parentdd7aa9e15d5742ad9b1716c29e2bcca16824a1cc
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)
v3: use EGL_NONE instead of DE_NULL when indicating that test
should use the default colorspace. That is do not include
the EGL_GL_COLORSPACE_KHR attribute in the appropriate
create function.
Test: adb -d shell am start \
      -n com.drawelements.deqp/android.app.NativeActivity \
      -e cmdLine '"deqp --deqp-case=dEQP-EGL.functional.wide_color.* \
      --deqp-log-filename=/sdcard/dEQP-Log.qpa"'
Bug: 65291400

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
(cherry picked from commit fbf132dcf9467388408627bee73d90f7e8a1d401)

Change-Id: I6bd6423e6eb5fe4bb4df0222ab624c41446b0b60
modules/egl/teglWideColorTests.cpp