projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7e6f70
)
intel/perf: fix how pipeline stats are stored
author
Marcin Ślusarz
<marcin.slusarz@intel.com>
Thu, 9 Jul 2020 18:54:41 +0000
(20:54 +0200)
committer
Marge Bot
<eric+marge@anholt.net>
Mon, 10 Aug 2020 13:41:29 +0000
(13:41 +0000)
It matters only when counters are not ordered by offset.
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5788>
src/intel/perf/gen_perf_query.c
patch
|
blob
|
history
diff --git
a/src/intel/perf/gen_perf_query.c
b/src/intel/perf/gen_perf_query.c
index 755ec9a83dd3f7e12ef1228e3fe43609cfb6492e..3d4f922b2b3c7b2e33847b6715df9e4cd4653a76 100644
(file)
--- a/
src/intel/perf/gen_perf_query.c
+++ b/
src/intel/perf/gen_perf_query.c
@@
-625,7
+625,7
@@
snapshot_statistics_registers(struct gen_perf_context *ctx,
perf->vtbl.store_register_mem(ctx->ctx, obj->pipeline_stats.bo,
counter->pipeline_stat.reg, 8,
- offset_in_bytes +
i * sizeof(uint64_t)
);
+ offset_in_bytes +
counter->offset
);
}
}