diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-11-24 22:02:26 -0800 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2010-12-01 11:52:43 -0800 |
commit | 9a1d063c6d679c2155f5eb80f1cb94368d36bf2c (patch) | |
tree | 4e77852832c0c61a4089f86aa64d15f7ed812fef /src/glsl/ir_optimization.h | |
parent | ead2ea89f42b40edc56ddf8c6ce1df4efdcefe2a (diff) |
glsl: Add an optimization pass to simplify discards.
NOTE: This is a candidate for the 7.9 branch.
Diffstat (limited to 'src/glsl/ir_optimization.h')
-rw-r--r-- | src/glsl/ir_optimization.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_optimization.h b/src/glsl/ir_optimization.h index fa497a4555..05c1becc5e 100644 --- a/src/glsl/ir_optimization.h +++ b/src/glsl/ir_optimization.h @@ -51,6 +51,7 @@ bool do_function_inlining(exec_list *instructions); bool do_lower_jumps(exec_list *instructions, bool pull_out_jumps = true, bool lower_sub_return = true, bool lower_main_return = false, bool lower_continue = false, bool lower_break = false); bool do_lower_texture_projection(exec_list *instructions); bool do_if_simplification(exec_list *instructions); +bool do_discard_simplification(exec_list *instructions); bool do_if_to_cond_assign(exec_list *instructions); bool do_mat_op_to_vec(exec_list *instructions); bool do_mod_to_fract(exec_list *instructions); |