summaryrefslogtreecommitdiff
path: root/glsl_parser_extras.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'glsl_parser_extras.cpp')
-rw-r--r--glsl_parser_extras.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp
index fd44e96602..a4a67c88bc 100644
--- a/glsl_parser_extras.cpp
+++ b/glsl_parser_extras.cpp
@@ -35,6 +35,7 @@
#include "glsl_parser_extras.h"
#include "glsl_parser.h"
#include "ir_constant_folding.h"
+#include "ir_function_inlining.h"
#include "ir_print_visitor.h"
const char *
@@ -753,6 +754,8 @@ main(int argc, char **argv)
/* Optimization passes */
if (!state.error) {
+ do_function_inlining(&instructions);
+
/* Constant folding */
ir_constant_folding_visitor constant_folding;
visit_exec_list(&instructions, &constant_folding);