pco: amend cf printing indentation

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
Simon Perretta 2024-12-29 09:36:12 +00:00 committed by Marge Bot
parent 3611c1313d
commit 1f7fb9458d

View file

@ -853,7 +853,7 @@ static void pco_print_block(pco_print_state *state, pco_block *block)
{
pco_printfi(state, "block ");
pco_print_block_name(state, block);
pco_printfi(state, ":\n");
pco_printf(state, ":\n");
++state->indent;
if (state->is_grouped) {
@ -891,7 +891,7 @@ static void pco_print_if(pco_print_state *state, pco_if *pif)
{
pco_printfi(state, "if ");
pco_print_if_name(state, pif);
pco_printfi(state, " (");
pco_printf(state, " (");
_pco_print_ref(state, pif->cond);
pco_printf(state, ") {\n");
++state->indent;
@ -902,11 +902,11 @@ static void pco_print_if(pco_print_state *state, pco_if *pif)
--state->indent;
if (list_is_empty(&pif->else_body)) {
pco_printf(state, "}\n");
pco_printfi(state, "}\n");
return;
}
pco_printf(state, "} else {\n");
pco_printfi(state, "} else {\n");
++state->indent;
pco_foreach_cf_node_in_if_else (cf_node, pif) {
@ -914,7 +914,7 @@ static void pco_print_if(pco_print_state *state, pco_if *pif)
}
--state->indent;
pco_printf(state, "}\n");
pco_printfi(state, "}\n");
}
/**
@ -938,7 +938,7 @@ static void pco_print_loop(pco_print_state *state, pco_loop *loop)
{
pco_printfi(state, "loop ");
pco_print_loop_name(state, loop);
pco_printfi(state, " {\n");
pco_printf(state, " {\n");
++state->indent;
pco_foreach_cf_node_in_loop (cf_node, loop) {
@ -946,7 +946,7 @@ static void pco_print_loop(pco_print_state *state, pco_loop *loop)
}
--state->indent;
pco_printf(state, "}\n");
pco_printfi(state, "}\n");
}
/**