mesa: HACK: Force GLES 3.0
TODO: Revert once the Intel driver passes all GLES 3.1 tests.
BUG=b:30202361
Change-Id: I0d01cb6dc3a9ffce45a10e05b4d066e06b8f09e5
Reviewed-on: https://chromium-review.googlesource.com/366852
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Tested-by: Ilja H. Friedel <ihf@chromium.org>
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index 2af3653..8e363de 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -594,6 +594,11 @@
}
}
+ /* Downgrade GLES2 version to 3.0 since advertising 3.1 triggers a number
+ * of test failures. (crbug.com/30202361) */
+ if (ctx->API == API_OPENGLES2 && ctx->Version > 30)
+ ctx->Version = 30;
+
switch (ctx->API) {
case API_OPENGL_COMPAT:
case API_OPENGL_CORE: