summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2017-09-06 10:55:07 -0700
committerKenneth Graunke <[email protected]>2017-09-14 16:17:36 -0700
commit62f2670cbaa8ce22972c21511f0f83e79344b84d (patch)
treeff6b908c2e80e28dfb40495c79bc54ca811975e8 /src
parent7c5988e615e580f771f6f478631d63aaada872a6 (diff)
i965: Print size of validation and relocation lists in INTEL_DEBUG=flush
It's nice to have this information. While we're at it, tweak the formatting to try and vertically align numbers in the common case. Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Chris Wilson <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/intel_batchbuffer.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
index fddc84fcf9b..b6ce8174d57 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -886,10 +886,15 @@ _intel_batchbuffer_flush_fence(struct brw_context *brw,
if (unlikely(INTEL_DEBUG & (DEBUG_BATCH | DEBUG_SUBMIT))) {
int bytes_for_commands = 4 * USED_BATCH(brw->batch);
int bytes_for_state = brw->batch.state_used;
- fprintf(stderr, "%s:%d: Batchbuffer flush with %4db (%0.1f%%) (pkt) + "
- "%4db (%0.1f%%) (state)\n", file, line,
+ fprintf(stderr, "%19s:%-3d: Batchbuffer flush with %5db (%0.1f%%) (pkt),"
+ " %5db (%0.1f%%) (state), %4d BOs (%0.1fMb aperture),"
+ " %4d batch relocs, %4d state relocs\n", file, line,
bytes_for_commands, 100.0f * bytes_for_commands / BATCH_SZ,
- bytes_for_state, 100.0f * bytes_for_state / STATE_SZ);
+ bytes_for_state, 100.0f * bytes_for_state / STATE_SZ,
+ brw->batch.exec_count,
+ (float) brw->batch.aperture_space / (1024 * 1024),
+ brw->batch.batch_relocs.reloc_count,
+ brw->batch.state_relocs.reloc_count);
}
brw_finish_batch(brw);