diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-11-06 11:21:48 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-11-06 11:45:01 +0000 |
commit | 381cd2d63f4aae29d478e02dda5a978a668168e1 (patch) | |
tree | 0c490e3d4ad527c45885bc01ca86f74c1fb76af1 /src/gallium/drivers/i965/brw_eu_emit.c | |
parent | aab9601a753afd012e16df072e774a32eb1348b9 (diff) |
i965g: disassemble each instruction as generated
Diffstat (limited to 'src/gallium/drivers/i965/brw_eu_emit.c')
-rw-r--r-- | src/gallium/drivers/i965/brw_eu_emit.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_eu_emit.c b/src/gallium/drivers/i965/brw_eu_emit.c index f7fa520348..7776b4f965 100644 --- a/src/gallium/drivers/i965/brw_eu_emit.c +++ b/src/gallium/drivers/i965/brw_eu_emit.c @@ -33,6 +33,7 @@ #include "brw_context.h" #include "brw_defines.h" #include "brw_eu.h" +#include "brw_debug.h" @@ -473,6 +474,12 @@ static struct brw_instruction *next_insn( struct brw_compile *p, { 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++]; |