Mesa (master): i965: perf: count number of accumlated reports
Lionel Landwerlin
llandwerlin at kemper.freedesktop.org
Thu Mar 8 23:07:42 UTC 2018
Module: Mesa
Branch: master
Commit: fb921a2870ae51cdad129438dfb1b20f1538b2fa
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb921a2870ae51cdad129438dfb1b20f1538b2fa
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Tue Mar 6 17:11:56 2018 +0000
i965: perf: count number of accumlated reports
This will be reused later.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
src/mesa/drivers/dri/i965/brw_performance_query.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_performance_query.c b/src/mesa/drivers/dri/i965/brw_performance_query.c
index d0faf4a2cb..71ea26753e 100644
--- a/src/mesa/drivers/dri/i965/brw_performance_query.c
+++ b/src/mesa/drivers/dri/i965/brw_performance_query.c
@@ -290,6 +290,10 @@ struct brw_perf_query_object
*/
bool results_accumulated;
+ /**
+ * Number of reports accumulated to produce the results.
+ */
+ uint32_t reports_accumulated;
} oa;
struct {
@@ -658,6 +662,8 @@ add_deltas(struct brw_context *brw,
int idx = 0;
int i;
+ obj->oa.reports_accumulated++;
+
switch (query->oa_format) {
case I915_OA_FORMAT_A32u40_A4u32_B8_C8:
accumulate_uint32(start + 1, end + 1, accumulator + idx++); /* timestamp */
More information about the mesa-commit
mailing list