aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-11-24 22:02:26 -0800
committerKenneth Graunke <[email protected]>2010-12-01 11:52:43 -0800
commit9a1d063c6d679c2155f5eb80f1cb94368d36bf2c (patch)
tree4e77852832c0c61a4089f86aa64d15f7ed812fef /src/glsl/glsl_parser_extras.cpp
parentead2ea89f42b40edc56ddf8c6ce1df4efdcefe2a (diff)
glsl: Add an optimization pass to simplify discards.
NOTE: This is a candidate for the 7.9 branch.
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r--src/glsl/glsl_parser_extras.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index 302cfbc5668..8dbe66927dc 100644
--- a/src/glsl/glsl_parser_extras.cpp
+++ b/src/glsl/glsl_parser_extras.cpp
@@ -716,6 +716,7 @@ do_common_optimization(exec_list *ir, bool linked, unsigned max_unroll_iteration
}
progress = do_structure_splitting(ir) || progress;
progress = do_if_simplification(ir) || progress;
+ progress = do_discard_simplification(ir) || progress;
progress = do_copy_propagation(ir) || progress;
if (linked)
progress = do_dead_code(ir) || progress;