summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-04-10 01:19:55 -0700
committerKenneth Graunke <[email protected]>2018-05-08 10:08:16 -0700
commit20f06bc72b73491b2c8d56f2da2426c6fd3b4d4a (patch)
tree97ce1e7e7519daf9aafe8d86e8e466be5e309d88
parent06d3841882ffd575452aee30bfd051a0830cb4db (diff)
i965: Dump validation list on INTEL_DEBUG=bat,submit.
This is really useful when debugging any sort of buffer management issues, so just printing it during INTEL_DEBUG=bat,submit seems reasonable. With bat, we're already spamming so much output that it doesn't really hurt. With submit, it's still easy to grep for the older information, and the new information is nice too. Reviewed-by: Scott D Phillips <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/intel_batchbuffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
index bac6e6dae85..8c5fd50123a 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -55,7 +55,7 @@
static void
intel_batchbuffer_reset(struct brw_context *brw);
-UNUSED static void
+static void
dump_validation_list(struct intel_batchbuffer *batch)
{
fprintf(stderr, "Validation list (length %d):\n", batch->exec_count);
@@ -880,6 +880,8 @@ _intel_batchbuffer_flush_fence(struct brw_context *brw,
(float) brw->batch.aperture_space / (1024 * 1024),
brw->batch.batch_relocs.reloc_count,
brw->batch.state_relocs.reloc_count);
+
+ dump_validation_list(&brw->batch);
}
ret = submit_batch(brw, in_fence_fd, out_fence_fd);