diff options
author | Chad Versace <chad@chad-versace.us> | 2011-09-27 13:53:11 -0700 |
---|---|---|
committer | Chad Versace <chad@chad-versace.us> | 2011-09-28 11:29:52 -0700 |
commit | a1eff5570f5e3f893fe4d453aef5ce143712ab09 (patch) | |
tree | 603b8e0db9e686558f5fcab3a6365fa84a89e0f1 /docs | |
parent | 124fc96ddf2695b4eca1a9b373f33cb993de9f6a (diff) |
mesa: Allow overriding GLSL version with environment variable
Override the context's GLSL version if the environment variable
MESA_GLSL_VERSION_OVERRIDE is set. Valid values for
MESA_GLSL_VERSION_OVERRIDE are integers, such as "130".
MESA_GLSL_VERSION_OVERRIDE has the same behavior as INTEL_GLSL_VERSION,
except that it applies to all drivers, not just Intel's. Since the former
supercedes the latter, this patch disables the latter.
Reviewed-by: Dave Airlie <airlied@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad@chad-versace.us>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/envvars.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/envvars.html b/docs/envvars.html index 6402ec5072..8c5c6abf74 100644 --- a/docs/envvars.html +++ b/docs/envvars.html @@ -62,6 +62,10 @@ This is a work-around for that. glGetString(GL_VERSION). Valid values are point-separated version numbers, such as "3.0". Mesa will not really implement all the features of the given version if it's higher than what's normally reported. +<li>MESA_GLSL_VERSION_OVERRIDE - changes the value returned by +glGetString(GL_SHADING_LANGUAGE_VERSION). Valid values are integers, such as +"130". Mesa will not really implement all the features of the given language version +if it's higher than what's normally reported. (for developers only) <li>MESA_GLSL - <a href="shading.html#envvars">shading language compiler options</a> </ul> |