Only run tests that the current hardware can support.

For each config, determine if a context can be created at test
instantiation time.  This allows skipping of ES3 tests when the hardware
does not support ES3.

Updated the perf_tests to use the EGLPlatformParameters struct so that
they can be filtered in the same way.

Change-Id: If664604b057cec4005eb4b63bebd83cd4964b7b2
Reviewed-on: https://chromium-review.googlesource.com/276460
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Tested-by: Geoff Lang <geofflang@chromium.org>
diff --git a/src/tests/gl_tests/DiscardFramebufferEXTTest.cpp b/src/tests/gl_tests/DiscardFramebufferEXTTest.cpp
index 8ca37bc..059820e 100644
--- a/src/tests/gl_tests/DiscardFramebufferEXTTest.cpp
+++ b/src/tests/gl_tests/DiscardFramebufferEXTTest.cpp
@@ -26,7 +26,7 @@
 
 TEST_P(DiscardFramebufferEXTTest, ExtensionEnabled)
 {
-    EGLPlatformParameters platform = GetParam().mEGLPlatformParameters;
+    EGLPlatformParameters platform = GetParam().eglParameters;
 
     if (platform.renderer == EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE)
     {