summaryrefslogtreecommitdiff
path: root/assembler/brw_context.h
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-01-31 14:28:00 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2013-03-04 15:54:41 +0000
commit28ff66a13c9dcc7aeb7bcff8d173495ee53deef9 (patch)
tree47b41844993f97ccf300d9d4a3c0ab587b53544e /assembler/brw_context.h
parente75faa3e43360995354683987c42e02b5ca16b19 (diff)
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 <damien.lespiau@intel.com>
Diffstat (limited to 'assembler/brw_context.h')
-rw-r--r--assembler/brw_context.h14
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