From 28ff66a13c9dcc7aeb7bcff8d173495ee53deef9 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Thu, 31 Jan 2013 14:28:00 +0000 Subject: assembler: Put struct opcode_desc back in brw_context.h I originally moved struct opcode_desc from brw_context.h to brw_eu.h on the mesa side, but that was before the realization we needed struct brw_context if we wanted to not touch the code too much. So put it back there now that the mesa patch has been dropped. Signed-off-by: Damien Lespiau --- assembler/brw_context.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'assembler/brw_context.h') 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 +#include + +#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 -- cgit v1.2.3