mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 18:24:13 +08:00
pan/bi: Add bi_print_bundle for printing bi_bundle
Post-schedule, nops are significnat here. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
This commit is contained in:
parent
bde54cb6d3
commit
919cdf15b3
@ -328,3 +328,17 @@ bi_print_instruction(bi_instruction *ins, FILE *fp)
|
||||
|
||||
fprintf(fp, "\n");
|
||||
}
|
||||
|
||||
void
|
||||
bi_print_bundle(bi_bundle *bundle, FILE *fp)
|
||||
{
|
||||
bi_instruction *ins[2] = { bundle->fma, bundle->add };
|
||||
|
||||
for (unsigned i = 0; i < 2; ++i) {
|
||||
if (ins[i])
|
||||
bi_print_instruction(ins[i], fp);
|
||||
else
|
||||
fprintf(fp, "nop\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,5 +39,6 @@ const char * bi_interp_mode_name(enum bifrost_interp_mode mode);
|
||||
const char * bi_ldst_type_name(enum bifrost_ldst_type type);
|
||||
|
||||
void bi_print_instruction(bi_instruction *ins, FILE *fp);
|
||||
void bi_print_bundle(bi_bundle *bundle, FILE *fp);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user