i965: Periodically dump the list of monitors if INTEL_DEBUG=perfmon.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 3 Nov 2013 02:42:54 +0000 (19:42 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Nov 2013 23:01:13 +0000 (15:01 -0800)
It's useful to see the state of all outstanding monitors; the start
of a new batch seems like a reasonable time to print them out.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/intel_batchbuffer.c

index 20c924ee3b831e31dd4a20e4353c82f6b5ad42d8..f66c2dd193a21bfa6d1960db21377a7927ce1ccc 100644 (file)
@@ -225,6 +225,9 @@ brw_new_batch(struct brw_context *brw)
     */
    if (INTEL_DEBUG & DEBUG_SHADER_TIME)
       brw_collect_and_report_shader_time(brw);
+
+   if (INTEL_DEBUG & DEBUG_PERFMON)
+      brw_dump_perf_monitors(brw);
 }
 
 /**