From deab75250c5cd90335ae2303f89eda33e10c870c Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 14 Sep 2020 13:09:53 -0400 Subject: [PATCH] pan/bi: Export dump_src Needed in generated disassembler. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Daniel Stone Part-of: --- src/panfrost/bifrost/disassemble.c | 3 ++- src/panfrost/bifrost/disassemble.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/panfrost/bifrost/disassemble.c b/src/panfrost/bifrost/disassemble.c index 437ed73..21755f6 100644 --- a/src/panfrost/bifrost/disassemble.c +++ b/src/panfrost/bifrost/disassemble.c @@ -412,7 +412,8 @@ static void dump_uniform_const_src(FILE *fp, struct bifrost_regs srcs, uint64_t } } -static void dump_src(FILE *fp, unsigned src, struct bifrost_regs srcs, uint64_t *consts, bool isFMA) +void +dump_src(FILE *fp, unsigned src, struct bifrost_regs srcs, uint64_t *consts, bool isFMA) { switch (src) { case 0: diff --git a/src/panfrost/bifrost/disassemble.h b/src/panfrost/bifrost/disassemble.h index 0f7ed50..c50072f 100644 --- a/src/panfrost/bifrost/disassemble.h +++ b/src/panfrost/bifrost/disassemble.h @@ -42,4 +42,6 @@ void bi_disasm_add(FILE *fp, unsigned bits, struct bifrost_regs *srcs, struct bi void bi_disasm_dest_fma(FILE *fp, struct bifrost_regs *next_regs); void bi_disasm_dest_add(FILE *fp, struct bifrost_regs *next_regs); +void dump_src(FILE *fp, unsigned src, struct bifrost_regs srcs, uint64_t *consts, bool isFMA); + #endif -- 2.7.4