aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-07-08 12:44:44 +1000
committerTimothy Arceri <[email protected]>2017-01-31 09:51:31 +1100
commit30aa22dec0db401abd919b051bdfed54aa9258d1 (patch)
tree12d7a7eb719ec4b3e73e19d9a14574f6fb0f3ab6 /src/mesa/main/shaderapi.c
parentba1eb854bdb054714c5e98140c5697ed9b894c42 (diff)
mesa: add new MESA_GLSL flag for printing shader cache debug info
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r--src/mesa/main/shaderapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 272aa5153cb..4667866ca06 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -77,6 +77,8 @@ _mesa_get_shader_flags(void)
flags |= GLSL_DUMP;
if (strstr(env, "log"))
flags |= GLSL_LOG;
+ if (strstr(env, "cache_info"))
+ flags |= GLSL_CACHE_INFO;
if (strstr(env, "nopvert"))
flags |= GLSL_NOP_VERT;
if (strstr(env, "nopfrag"))