glsl: Add an optimization pass to simplify discards.

NOTE: This is a candidate for the 7.9 branch.
This commit is contained in:
Kenneth Graunke
2010-11-24 22:02:26 -08:00
parent ead2ea89f4
commit 9a1d063c6d
5 changed files with 184 additions and 0 deletions

View File

@@ -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);