OSDN Git Service

EGL: add color space validation
authorCourtney Goeltzenleuchter <courtneygo@google.com>
Tue, 20 Jun 2017 14:12:54 +0000 (08:12 -0600)
committerCourtney Goeltzenleuchter <courtneygo@google.com>
Thu, 22 Jun 2017 14:03:22 +0000 (08:03 -0600)
commiteeaa52bc65b5cfaca1f0de44635b57919179df29
treecc1d3bee0aebf4d6cba77ab36cbe01de0e7962b4
parent3dc8acb24585fec64ebaa51fc6ce0b0082110eb9
EGL: add color space validation

We want Android to support multiple color spaces as
that can be implemented entirely in the eglapi.cpp wrapper.
These additional dataspaces do not require special behavior
by the driver and may not recognize EGL_GL_COLORSPACE_DISPLAY_P3_EXT,
EGL_GL_COLORSPACE_DISPLAY_P3_LINEAR_EXT, and related attributes.
Therefor, need to filter out those attributes before calling
the driver.
In the future there may be new extensions that do require
driver support. When that happens we'll need to update
stripColorSpaceAttribute to treat that correctly.

Test: Android CTS
      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: 62424735
Change-Id: I0f0867feb73055100636d326213183ef1f052b7c
opengl/libs/EGL/eglApi.cpp