aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2014-07-08 18:55:27 -0700
committerIan Romanick <[email protected]>2014-09-30 13:34:42 -0700
commit04e1357d97ae2d99dfbf0b6e91feee54eecd6eb5 (patch)
treee2f8f0654a0256466daf7491894d004000753164 /src/mesa/main/context.c
parenta99482482d74ba654d8ec15d0a09e5b3cb0160e9 (diff)
glsl: Add context-level controls for whether temporaries have real names
No change Valgrind massif results for a trimmed apitrace of dota2. v2: Minor rebase on _mesa_init_constants changes. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index b7e87284e30..0edd66d6f9e 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -645,6 +645,12 @@ _mesa_init_constants(struct gl_constants *consts, gl_api api)
consts->GLSLVersion = 120;
_mesa_override_glsl_version(consts);
+#ifdef DEBUG
+ consts->GenerateTemporaryNames = true;
+#else
+ consts->GenerateTemporaryNames = false;
+#endif
+
/* GL_ARB_framebuffer_object */
consts->MaxSamples = 0;