diff options
author | Marek Olšák <[email protected]> | 2016-07-03 17:11:07 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-11-15 20:23:39 +0100 |
commit | e33440070a54cd3e67953ee8410c0edb62643c47 (patch) | |
tree | ffd0121538e31407caa5330c904fc3c05c3cea24 /src/compiler/glsl/ir_optimization.h | |
parent | 83d9b8a6f6365bc1569cdc847672478ac643670d (diff) |
glsl/lower_if: conditionally lower if-branches based on their size
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_optimization.h')
-rw-r--r-- | src/compiler/glsl/ir_optimization.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ir_optimization.h b/src/compiler/glsl/ir_optimization.h index e6e8318a3aa..0d6c4e6a66a 100644 --- a/src/compiler/glsl/ir_optimization.h +++ b/src/compiler/glsl/ir_optimization.h @@ -109,7 +109,7 @@ bool do_if_simplification(exec_list *instructions); bool opt_flatten_nested_if_blocks(exec_list *instructions); bool do_discard_simplification(exec_list *instructions); bool lower_if_to_cond_assign(gl_shader_stage stage, exec_list *instructions, - unsigned max_depth = 0); + unsigned max_depth = 0, unsigned min_branch_cost = 0); bool do_mat_op_to_vec(exec_list *instructions); bool do_minmax_prune(exec_list *instructions); bool do_noop_swizzle(exec_list *instructions); |