summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-12-10 22:13:05 -0800
committerKenneth Graunke <[email protected]>2016-12-11 16:33:05 -0800
commit35c5a9a64df013a385b7bb5291c24a2f300ef57b (patch)
tree4f7d7b1ff7b1bf527c4947a5d150ae66fae8a629 /src/mesa
parent713cd23d8e5db82e64c81fff792a932a614d7006 (diff)
i965: Print out cycle estimates at the start of block annotations.
We now print START B15 <-B14 (42774 cycles) indicating that we estimate B15 will take 42,774 cycles. Printing this should make it easier where time is spent in the program. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/intel_asm_annotation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_asm_annotation.c b/src/mesa/drivers/dri/i965/intel_asm_annotation.c
index b01490a1822..bb24e5e8ad2 100644
--- a/src/mesa/drivers/dri/i965/intel_asm_annotation.c
+++ b/src/mesa/drivers/dri/i965/intel_asm_annotation.c
@@ -45,7 +45,7 @@ dump_assembly(void *assembly, int num_annotations, struct annotation *annotation
struct bblock_t *predecessor_block = predecessor_link->block;
fprintf(stderr, " <-B%d", predecessor_block->num);
}
- fprintf(stderr, "\n");
+ fprintf(stderr, " (%u cycles)\n", annotation[i].block_start->cycle_count);
}
if (last_annotation_ir != annotation[i].ir) {