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>
Fri, 23 Jun 2017 00:26:02 +0000 (00:26 +0000)
commit15f79786e14ec503234e58ec5413a224bf17f78e
treea61392c1edab44c21149ad8600ecd1a3409fd0e6
parent49cdc635a222a495b5b5e17962c31a308003e23d
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
(cherry picked from commit eeaa52bc65b5cfaca1f0de44635b57919179df29)
opengl/libs/EGL/eglApi.cpp