diff options
Diffstat (limited to 'assembler/brw_context.h')
-rw-r--r-- | assembler/brw_context.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/assembler/brw_context.h b/assembler/brw_context.h index 16a9f702..90e66f71 100644 --- a/assembler/brw_context.h +++ b/assembler/brw_context.h @@ -31,6 +31,9 @@ #define __BRW_CONTEXT_H__ #include <stdbool.h> +#include <stdio.h> + +#include "brw_structs.h" #ifdef __cplusplus extern "C" { @@ -57,6 +60,17 @@ struct brw_context bool brw_init_context(struct brw_context *brw, int gen); +/* brw_disasm.c */ +struct opcode_desc { + char *name; + int nsrc; + int ndst; +}; + +extern const struct opcode_desc opcode_descs[128]; + +int brw_disasm (FILE *file, struct brw_instruction *inst, int gen); + #ifdef __cplusplus } /* end of extern "C" */ #endif |