mesa: Allow overriding GLSL version with environment variable
authorChad Versace <chad@chad-versace.us>
Tue, 27 Sep 2011 20:53:11 +0000 (13:53 -0700)
committerChad Versace <chad@chad-versace.us>
Wed, 28 Sep 2011 18:29:52 +0000 (11:29 -0700)
commita1eff5570f5e3f893fe4d453aef5ce143712ab09
tree603b8e0db9e686558f5fcab3a6365fa84a89e0f1
parent124fc96ddf2695b4eca1a9b373f33cb993de9f6a
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>
docs/envvars.html
src/mesa/drivers/dri/intel/intel_extensions.c
src/mesa/drivers/dri/r600/r600_context.c
src/mesa/main/context.c
src/mesa/main/version.c
src/mesa/main/version.h
src/mesa/state_tracker/st_extensions.c