mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 23:10:11 +01:00
nir/print: Improve divergence information
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29591>
This commit is contained in:
parent
222fbcbfd5
commit
290cbf413c
1 changed files with 4 additions and 3 deletions
|
|
@ -2093,8 +2093,9 @@ print_block(nir_block *block, print_state *state, unsigned tabs)
|
|||
state->padding_for_no_dest = 0;
|
||||
|
||||
print_indentation(tabs, fp);
|
||||
fprintf(fp, "%s block b%u:",
|
||||
block->divergent ? "div" : "con", block->index);
|
||||
fprintf(fp, "%sblock b%u:",
|
||||
divergence_status(state, block->divergent),
|
||||
block->index);
|
||||
|
||||
const bool empty_block = exec_list_is_empty(&block->instr_list);
|
||||
if (empty_block) {
|
||||
|
|
@ -2166,7 +2167,7 @@ print_loop(nir_loop *loop, print_state *state, unsigned tabs)
|
|||
FILE *fp = state->fp;
|
||||
|
||||
print_indentation(tabs, fp);
|
||||
fprintf(fp, "loop {\n");
|
||||
fprintf(fp, "%sloop {\n", divergence_status(state, loop->divergent));
|
||||
foreach_list_typed(nir_cf_node, node, node, &loop->body) {
|
||||
print_cf_node(node, state, tabs + 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue