diff options
author | Eric Anholt <[email protected]> | 2012-02-03 11:50:42 +0100 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-09-17 12:32:51 -0700 |
commit | f2bd3e70b5e643f9c03a5003965861281f206fd3 (patch) | |
tree | 252ba61d064788fc5341a0a4b58127d1063e3543 /src/mesa/drivers/dri/i965/brw_eu.h | |
parent | 826ecbbe6eef88ccc6602d0db978f1941c1a3421 (diff) |
i965: Move program dump to a helper function in brw_eu.c.
It's going to get more complicated when we do instruction compaction. This
also introduces putting the program offset in the output.
v2: Use next_insn_offset in brw_get_program(), too.
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_eu.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu.h b/src/mesa/drivers/dri/i965/brw_eu.h index e0e02d4f103..2fa84dff490 100644 --- a/src/mesa/drivers/dri/i965/brw_eu.h +++ b/src/mesa/drivers/dri/i965/brw_eu.h @@ -112,6 +112,7 @@ struct brw_compile { struct brw_instruction *store; int store_size; GLuint nr_insn; + unsigned int next_insn_offset; void *mem_ctx; @@ -813,6 +814,7 @@ void brw_set_acc_write_control(struct brw_compile *p, GLuint value); void brw_init_compile(struct brw_context *, struct brw_compile *p, void *mem_ctx); +void brw_dump_compile(struct brw_compile *p, FILE *out, int start, int end); const GLuint *brw_get_program( struct brw_compile *p, GLuint *sz ); struct brw_instruction *brw_next_insn(struct brw_compile *p, GLuint opcode); |