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>
Fri, 25 Aug 2017 21:19:17 +0000 (15:19 -0600)
commita3e669768db6a046bbfde876cf8264021a30dc7c
tree8b78af4cb537b2189f203adf92d25234f569bee8
parent46c216fa8766d2c1a49eeb7a67b2e6cfca16873a
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"'
Bug: 64487716

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