int brw_upload_cs_urb_state(struct brw_context *brw);
/* brw_disasm.c */
+int brw_disasm_insn (FILE *file, const struct brw_instruction *inst);
int brw_disasm (FILE *file,
const struct brw_instruction *inst,
unsigned count);
#define DEBUG_PIXEL 0x100
#define DEBUG_BUFMGR 0x200
#define DEBUG_MIN_URB 0x400
-#define DEBUG_unused2 0x800
+#define DEBUG_DISASSEM 0x800
#define DEBUG_unused3 0x1000
#define DEBUG_SYNC 0x2000
#define DEBUG_PRIMS 0x4000
}
}
-static int brw_disasm_insn (FILE *file, const struct brw_instruction *inst)
+int brw_disasm_insn (FILE *file, const struct brw_instruction *inst)
{
int err = 0;
int space = 0;
#include "brw_context.h"
#include "brw_defines.h"
#include "brw_eu.h"
+#include "brw_debug.h"
{
struct brw_instruction *insn;
+ if (0 && (BRW_DEBUG & DEBUG_DISASSEM))
+ {
+ if (p->nr_insn)
+ brw_disasm_insn(stderr, &p->store[p->nr_insn-1]);
+ }
+
assert(p->nr_insn + 1 < BRW_EU_MAX_INSN);
insn = &p->store[p->nr_insn++];
{ "pix", DEBUG_PIXEL},
{ "buf", DEBUG_BUFMGR},
{ "min", DEBUG_MIN_URB},
+ { "dis", DEBUG_DISASSEM},
{ "sync", DEBUG_SYNC},
{ "prim", DEBUG_PRIMS },
{ "vert", DEBUG_VERTS },