summaryrefslogtreecommitdiff
path: root/src/compiler/glsl/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2021-04-16 13:50:41 -0400
committerMarge Bot <eric+marge@anholt.net>2021-04-20 18:54:57 +0000
commit5ef4296cb651e39402263c426d3edbee99ea1220 (patch)
treec85b8cda4ad634667d68e0552c2a8ec53e91c38c /src/compiler/glsl/glsl_parser_extras.cpp
parent9fb1f9303b5e082f1aa6133c76a71cbf075bfd11 (diff)
compiler/glsl: Return progress from propagate_invariance()
Doing so allow you to easily tell what the pass did using the existing infrastructure in the OPT macro. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10292>
Diffstat (limited to 'src/compiler/glsl/glsl_parser_extras.cpp')
-rw-r--r--src/compiler/glsl/glsl_parser_extras.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl_parser_extras.cpp
index 0cabd73be49..90f2328e67c 100644
--- a/src/compiler/glsl/glsl_parser_extras.cpp
+++ b/src/compiler/glsl/glsl_parser_extras.cpp
@@ -2331,7 +2331,7 @@ do_common_optimization(exec_list *ir, bool linked,
OPT(do_dead_functions, ir);
OPT(do_structure_splitting, ir);
}
- propagate_invariance(ir);
+ OPT(propagate_invariance, ir);
OPT(do_if_simplification, ir);
OPT(opt_flatten_nested_if_blocks, ir);
OPT(opt_conditional_discard, ir);