diff options
author | Kenneth Graunke <[email protected]> | 2014-07-17 16:29:41 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-07-21 11:19:08 -0700 |
commit | 662f1ccc248c5f978b67b63276b0b0b00f5f68ca (patch) | |
tree | fd0e9cc61d70ccce03b8b2a3a2cd0d3a8606d9ab /src | |
parent | 3e9105f7eefae97c928034662f67019973b9e483 (diff) |
i965: Disable hex offset printing in disassembly.
Printing the hex offsets makes it basically impossible to diff assembly:
if you add even a single instruction, the entire shader shows up as a
difference. So, every time I want to compare assembly, I have to strip
this out.
The hex offsets might be useful when debugging compaction, or when
inspecting the program cache buffer. Since it's occasionally useful,
but uncommon, this patch disables it by default, but makes it easy to
re-enable it temporarily when the need arises.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu.c b/src/mesa/drivers/dri/i965/brw_eu.c index f4c74952a17..a400b4486aa 100644 --- a/src/mesa/drivers/dri/i965/brw_eu.c +++ b/src/mesa/drivers/dri/i965/brw_eu.c @@ -241,7 +241,8 @@ brw_disassemble(struct brw_context *brw, brw_inst *insn = assembly + offset; brw_inst uncompacted; bool compacted = brw_inst_cmpt_control(brw, insn); - fprintf(out, "0x%08x: ", offset); + if (0) + fprintf(out, "0x%08x: ", offset); if (compacted) { brw_compact_inst *compacted = (void *)insn; |