mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 13:20:14 +01:00
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 <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
3e9105f7ee
commit
662f1ccc24
1 changed files with 2 additions and 1 deletions
|
|
@ -241,6 +241,7 @@ brw_disassemble(struct brw_context *brw,
|
||||||
brw_inst *insn = assembly + offset;
|
brw_inst *insn = assembly + offset;
|
||||||
brw_inst uncompacted;
|
brw_inst uncompacted;
|
||||||
bool compacted = brw_inst_cmpt_control(brw, insn);
|
bool compacted = brw_inst_cmpt_control(brw, insn);
|
||||||
|
if (0)
|
||||||
fprintf(out, "0x%08x: ", offset);
|
fprintf(out, "0x%08x: ", offset);
|
||||||
|
|
||||||
if (compacted) {
|
if (compacted) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue