diff options
author | Kenneth Graunke <[email protected]> | 2010-11-25 01:09:26 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-12-01 11:52:43 -0800 |
commit | 940df10100d740ef27fa39026fd51c3199ed3d62 (patch) | |
tree | e98326e594fb6dc9fcf7feef37e769e08ac61d1e /src/glsl/ir_optimization.h | |
parent | 9a1d063c6d679c2155f5eb80f1cb94368d36bf2c (diff) |
glsl: Add a lowering pass to move discards out of if-statements.
This should allow lower_if_to_cond_assign to work in the presence of
discards, fixing bug #31690 and likely #31983.
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 05c1becc5eb..1048ff982e0 100644 --- a/src/glsl/ir_optimization.h +++ b/src/glsl/ir_optimization.h @@ -62,6 +62,7 @@ bool do_swizzle_swizzle(exec_list *instructions); bool do_tree_grafting(exec_list *instructions); bool do_vec_index_to_cond_assign(exec_list *instructions); bool do_vec_index_to_swizzle(exec_list *instructions); +bool lower_discard(exec_list *instructions); bool lower_instructions(exec_list *instructions, unsigned what_to_lower); bool lower_noise(exec_list *instructions); bool lower_variable_index_to_cond_assign(exec_list *instructions, |