projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
78ec9e2
)
i965: Don't print line numbers with INTEL_DEBUG=optimizer.
author
Matt Turner
<mattst88@gmail.com>
Sat, 26 Sep 2015 21:40:09 +0000
(14:40 -0700)
committer
Matt Turner
<mattst88@gmail.com>
Mon, 5 Oct 2015 06:03:59 +0000
(23:03 -0700)
The thing you want to do with the output files is diff them, which is
made more difficult by line numbers changing.
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/mesa/drivers/dri/i965/brw_shader.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_shader.cpp
b/src/mesa/drivers/dri/i965/brw_shader.cpp
index 3960e86942188111f6609e596446aa5b1ced2292..a16e59587768ec0d49ed148e53243b037672c880 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_shader.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_shader.cpp
@@
-1307,13
+1307,15
@@
backend_shader::dump_instructions(const char *name)
if (cfg) {
int ip = 0;
foreach_block_and_inst(block, backend_instruction, inst, cfg) {
- fprintf(file, "%4d: ", ip++);
+ if (!unlikely(INTEL_DEBUG & DEBUG_OPTIMIZER))
+ fprintf(file, "%4d: ", ip++);
dump_instruction(inst, file);
}
} else {
int ip = 0;
foreach_in_list(backend_instruction, inst, &instructions) {
- fprintf(file, "%4d: ", ip++);
+ if (!unlikely(INTEL_DEBUG & DEBUG_OPTIMIZER))
+ fprintf(file, "%4d: ", ip++);
dump_instruction(inst, file);
}
}