From: Kenneth Graunke Date: Sun, 3 Nov 2013 02:42:54 +0000 (-0700) Subject: i965: Periodically dump the list of monitors if INTEL_DEBUG=perfmon. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63b8ce612fa11c9aee5db101d3446c9783bf4111;p=mesa.git i965: Periodically dump the list of monitors if INTEL_DEBUG=perfmon. 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 Reviewed-by: Eric Anholt --- diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c index 20c924ee3b8..f66c2dd193a 100644 --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c @@ -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); } /**