summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/standalone.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-11-22 16:56:21 +1100
committerTimothy Arceri <[email protected]>2017-02-09 12:22:56 +1100
commit0bf21519b7daa356724d2f3fcb7f954a7700ccde (patch)
tree900161cc56d26d561490600f9e79799353c60183 /src/compiler/glsl/standalone.cpp
parent4026b45bbc4c2c067feeee181c54e2beaa1cc5e0 (diff)
glsl: add param to force shader recompile
This will be used to skip checking the cache and force a recompile. Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/compiler/glsl/standalone.cpp')
-rw-r--r--src/compiler/glsl/standalone.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/glsl/standalone.cpp b/src/compiler/glsl/standalone.cpp
index 7a2d3d200f0..521964bf9cc 100644
--- a/src/compiler/glsl/standalone.cpp
+++ b/src/compiler/glsl/standalone.cpp
@@ -381,7 +381,8 @@ compile_shader(struct gl_context *ctx, struct gl_shader *shader)
struct _mesa_glsl_parse_state *state =
new(shader) _mesa_glsl_parse_state(ctx, shader->Stage, shader);
- _mesa_glsl_compile_shader(ctx, shader, options->dump_ast, options->dump_hir);
+ _mesa_glsl_compile_shader(ctx, shader, options->dump_ast,
+ options->dump_hir, true);
/* Print out the resulting IR */
if (!state->error && options->dump_lir) {