From: Georg Lehmann Date: Mon, 29 Aug 2022 15:18:56 +0000 (+0200) Subject: nir: Print selection control for nir_if. X-Git-Tag: upstream/22.3.5~3941 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07b3adec12a90cec3543c2edc6c2965d7b89b7e7;p=platform%2Fupstream%2Fmesa.git nir: Print selection control for nir_if. It's useful to see this information now that aco is going to use it. Signed-off-by: Georg Lehmann Reviewed-by: Emma Anholt Reviewed-by: Timur Kristóf Reviewed-by: Jason Ekstrand Part-of: --- diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index edc83db..a3e1207 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -1553,6 +1553,17 @@ print_if(nir_if *if_stmt, print_state *state, unsigned tabs) print_tabs(tabs, fp); fprintf(fp, "if "); print_src(&if_stmt->condition, state); + switch (if_stmt->control) { + case nir_selection_control_flatten: + fprintf(fp, " /* flatten */"); + break; + case nir_selection_control_dont_flatten: + fprintf(fp, " /* don't flatten */"); + break; + case nir_selection_control_none: + default: + break; + } fprintf(fp, " {\n"); foreach_list_typed(nir_cf_node, node, node, &if_stmt->then_list) { print_cf_node(node, state, tabs + 1);