[Mesa-dev] [PATCH 2/3] mesa: adds some comments regarding MESA_GLES_VERSION_OVERRIDE usage
Andres Gomez
agomez at igalia.com
Fri Mar 2 13:02:33 UTC 2018
Fixes: 03fd6704db9 ("mesa: Add support for a new override string
MESA_GLES_VERSION_OVERRIDE")
Cc: Jordan Justen <jordan.l.justen at intel.com>
Cc: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Andres Gomez <agomez at igalia.com>
---
src/mesa/main/version.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index 5184ebd8fdb..6a0894f5155 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -134,8 +134,8 @@ create_version_string(struct gl_context *ctx, const char *prefix)
}
/**
- * Override the context's version and/or API type if the
- * environment variable MESA_GL_VERSION_OVERRIDE is set.
+ * Override the context's version and/or API type if the environment variables
+ * MESA_GL_VERSION_OVERRIDE or MESA_GLES_VERSION_OVERRIDE are set.
*
* Example uses of MESA_GL_VERSION_OVERRIDE:
*
@@ -145,6 +145,12 @@ create_version_string(struct gl_context *ctx, const char *prefix)
* 3.1FC: select a Core+Forward Compatible profile with GL version 3.1
* 3.2: select a Core profile with GL version 3.2
* 3.2FC: select a Core+Forward Compatible profile with GL version 3.2
+ *
+ * Example uses of MESA_GL_VERSION_OVERRIDE:
+ *
+ * 2.0: select GLES version 2.0
+ * 3.0: select GLES version 3.0
+ * 3.1: select GLES version 3.1
*/
bool
_mesa_override_gl_version_contextless(struct gl_constants *consts,
--
2.15.1
More information about the mesa-dev
mailing list