glsl/lower_if: conditionally lower if-branches based on their size
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user