mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-19 12:22:55 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user