diff options
author | Eric Anholt <[email protected]> | 2012-05-04 13:08:46 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-05-14 17:03:51 -0700 |
commit | 3de1395fa5a563c13774ac1c38722c16cecc521d (patch) | |
tree | b501f3cc408f359d9681ca349f0f06f9bfcd3620 /src/glsl/ir_optimization.h | |
parent | e21b9f1f19d2345026a7fbe095a776d0b64557ec (diff) |
glsl: Implement the GLSL 1.30+ discard control flow rule in GLSL IR.
Previously, I tried implementing this in the i965 driver, but did so
in a way that violated the intent of the spec, and broke Tropics.
Reviewed-by: Kenneth Graunke <[email protected]>
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 35678358307..cca63824d05 100644 --- a/src/glsl/ir_optimization.h +++ b/src/glsl/ir_optimization.h @@ -66,6 +66,7 @@ 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_discard_flow(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, |