i965: extract performance query metrics

Graphics / Mesa 3D Graphics Library / Mesa - Lionel Landwerlin [intel.com] - 17 April 2019 13:10 EDT

We would like to reuse performance query metrics in other APIs. Let's make the query code dealing with the processing of raw counters into human readable values API agnostic.

134e750e16b i965: extract performance query metrics
src/intel/Android.mk | 1 +
src/intel/Android.perf.mk | 52 ++
src/intel/Makefile.perf.am | 41 ++
src/intel/Makefile.sources | 24 +
src/intel/meson.build | 1 +
src/intel/perf/gen_perf.c | 435 ++++++++++++++
src/intel/perf/gen_perf.h | 258 ++++++++
.../dri/i965/brw_oa.py => intel/perf/gen_perf.py} | 79 +--
src/intel/perf/meson.build | 40 ++
.../i965/brw_oa_bdw.xml => intel/perf/oa-bdw.xml} | 0
.../i965/brw_oa_bxt.xml => intel/perf/oa-bxt.xml} | 0
.../brw_oa_cflgt2.xml => intel/perf/oa-cflgt2.xml} | 0
.../brw_oa_cflgt3.xml => intel/perf/oa-cflgt3.xml} | 0
.../i965/brw_oa_chv.xml => intel/perf/oa-chv.xml} | 0
.../i965/brw_oa_cnl.xml => intel/perf/oa-cnl.xml} | 0
.../i965/brw_oa_glk.xml => intel/perf/oa-glk.xml} | 0
.../i965/brw_oa_hsw.xml => intel/perf/oa-hsw.xml} | 0
.../i965/brw_oa_icl.xml => intel/perf/oa-icl.xml} | 0
.../brw_oa_kblgt2.xml => intel/perf/oa-kblgt2.xml} | 0
.../brw_oa_kblgt3.xml => intel/perf/oa-kblgt3.xml} | 0
.../brw_oa_sklgt2.xml => intel/perf/oa-sklgt2.xml} | 0
.../brw_oa_sklgt3.xml => intel/perf/oa-sklgt3.xml} | 0
.../brw_oa_sklgt4.xml => intel/perf/oa-sklgt4.xml} | 0
src/mesa/drivers/dri/i965/Android.mk | 3 +-
src/mesa/drivers/dri/i965/Makefile.sources | 20 -
src/mesa/drivers/dri/i965/brw_context.h | 73 +--
src/mesa/drivers/dri/i965/brw_performance_query.c | 653 +++++----------------
src/mesa/drivers/dri/i965/brw_performance_query.h | 80 +--
.../drivers/dri/i965/brw_performance_query_mdapi.c | 114 ++--
.../dri/i965/brw_performance_query_metrics.h | 57 --
src/mesa/drivers/dri/i965/meson.build | 33 +-
31 files changed, 1098 insertions(+), 866 deletions(-)

Upstream: cgit.freedesktop.org


  • Share