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>
This commit is contained in:
Damien Lespiau
2013-01-31 14:28:00 +00:00
parent e75faa3e43
commit 28ff66a13c
3 changed files with 23 additions and 19 deletions
+14
View File
@@ -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