mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
pan/bi: Add FILE* argument to bi_print_registers
In case we need it in general IR printing. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5260>
This commit is contained in:
parent
dd96b451f6
commit
95e3776d3e
3 changed files with 6 additions and 6 deletions
|
|
@ -216,7 +216,7 @@ bi_assign_port_read(bi_registers *regs, unsigned src)
|
|||
return;
|
||||
}
|
||||
|
||||
bi_print_ports(regs);
|
||||
bi_print_ports(regs, stderr);
|
||||
unreachable("Failed to find a free port for src");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -412,21 +412,21 @@ bi_print_instruction(bi_instruction *ins, FILE *fp)
|
|||
}
|
||||
|
||||
void
|
||||
bi_print_ports(bi_registers *regs)
|
||||
bi_print_ports(bi_registers *regs, FILE *fp)
|
||||
{
|
||||
for (unsigned i = 0; i < 2; ++i) {
|
||||
if (regs->enabled[i])
|
||||
printf("port %u: %u\n", i, regs->port[i]);
|
||||
fprintf(fp, "port %u: %u\n", i, regs->port[i]);
|
||||
}
|
||||
|
||||
if (regs->write_fma || regs->write_add) {
|
||||
printf("port 2 (%s): %u\n",
|
||||
fprintf(fp, "port 2 (%s): %u\n",
|
||||
regs->write_add ? "ADD" : "FMA",
|
||||
regs->port[2]);
|
||||
}
|
||||
|
||||
if ((regs->write_fma && regs->write_add) || regs->read_port3) {
|
||||
printf("port 3 (%s): %u\n",
|
||||
fprintf(fp, "port 3 (%s): %u\n",
|
||||
regs->read_port3 ? "read" : "FMA",
|
||||
regs->port[3]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ const char * bi_frexp_op_name(enum bi_frexp_op op);
|
|||
const char * bi_tex_op_name(enum bi_tex_op op);
|
||||
|
||||
void bi_print_instruction(bi_instruction *ins, FILE *fp);
|
||||
void bi_print_ports(bi_registers *regs);
|
||||
void bi_print_ports(bi_registers *regs, FILE *fp);
|
||||
void bi_print_bundle(bi_bundle *bundle, FILE *fp);
|
||||
void bi_print_clause(bi_clause *clause, FILE *fp);
|
||||
void bi_print_block(bi_block *block, FILE *fp);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue