Check only what's needed and use threshold
authorCourtney Goeltzenleuchter <courtneygo@google.com>
Fri, 28 Jul 2017 19:51:31 +0000 (13:51 -0600)
committerCourtney Goeltzenleuchter <courtneygo@google.com>
Tue, 22 Aug 2017 21:58:15 +0000 (15:58 -0600)
commit63ca41b4a01a136a2af99363ddc37e9dd25c3ed8
tree474d21384a16c3eeabafb26bd66f9fddfa8f6116
parentbe0d165a5d941f87320f8eb27558e037d92dcae6
Check only what's needed and use threshold

Check for only the functionality needed for a specific test.
E.g. if testing floating point color, don't need to check
for support of 10:10:10:2 pixel format.
Some devices are not able to hit the exact values calculated.
Not unexpected, update tests to use thresholds.

Note: waiting on results of b/64487716. Seeing failure on
Pixel devices. Need to make sure it's not a test issue.

Test: adb -s 0424415804161004f80d -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"'

Change-Id: I2adb31eaa3b189179aeceb9e8f6b1ac8587b6027
(cherry picked from commit 041a1b5e82db7a6945aaefd791639de1c8c9e84d)
modules/egl/teglWideColorTests.cpp