pan/bi: Add disassembly prototypes

Fix a header guard too.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6749>
This commit is contained in:
Alyssa Rosenzweig 2020-09-14 13:24:11 -04:00 committed by Marge Bot
parent 82f33155f6
commit 944cb8bcba

View file

@ -23,9 +23,20 @@
* SOFTWARE.
*/
#ifndef __BI_DISASM_H
#define __BI_DISASM_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include "bifrost.h"
void disassemble_bifrost(FILE *fp, uint8_t *code, size_t size, bool verbose);
void
bi_disasm_fma(FILE *fp, unsigned bits, struct bifrost_regs *srcs, struct bifrost_regs *next_regs, unsigned staging_register, unsigned branch_offset, uint64_t *consts);
void bi_disasm_add(FILE *fp, unsigned bits, struct bifrost_regs *srcs, struct bifrost_regs *next_regs, unsigned staging_register, unsigned branch_offset, uint64_t *consts);
#endif