mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-28 14:00:30 +01:00
panfrost/midgard: Add mir_print_bundle helper
This helps with debugging scheduling/emission. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
fd6d6c1b15
commit
c62f2ff852
2 changed files with 14 additions and 0 deletions
|
|
@ -370,6 +370,7 @@ void mir_rewrite_index_dst(compiler_context *ctx, unsigned old, unsigned new);
|
|||
/* MIR printing */
|
||||
|
||||
void mir_print_instruction(midgard_instruction *ins);
|
||||
void mir_print_bundle(midgard_bundle *ctx);
|
||||
void mir_print_block(midgard_block *block);
|
||||
void mir_print_shader(compiler_context *ctx);
|
||||
|
||||
|
|
|
|||
|
|
@ -122,3 +122,16 @@ mir_print_shader(compiler_context *ctx)
|
|||
mir_print_block(block);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
mir_print_bundle(midgard_bundle *bundle)
|
||||
{
|
||||
printf("[\n");
|
||||
|
||||
for (unsigned i = 0; i < bundle->instruction_count; ++i) {
|
||||
midgard_instruction *ins = bundle->instructions[i];
|
||||
mir_print_instruction(ins);
|
||||
}
|
||||
|
||||
printf("]\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue