[Mesa-dev] [PATCH 00/11] i965: enable GPA

Lionel Landwerlin lionel.g.landwerlin at intel.com
Thu Mar 8 15:42:45 UTC 2018


Hi all,

One of the tool that Intel provides as part of a suite called GPA [1]
is a frame analyzer. This provides a way to look at per draw call or
frame workloads on the GPU through the OA hardware.

This tool relies on another library called MDAPI which requires a
somewhat specific format of data exchanged through the
GL_INTEL_performance_query extension.

This series implements this data format exchange while also providing
access to the raw delta values of the OA counters (see explanation in
patch 10). I've tried to put most of this stuff in its own file so
that it doesn't interact too much with the existing queries, while
also keeping the accumulation logic generic enough that it remains
shared code.

Hopefully that's not too hairy :)

Cheers,

[1] : https://software.intel.com/en-us/gpa


Lionel Landwerlin (11):
  i965: perf: default case for unknown query types
  i965: perf: store the hw_id of the context in the query
  i965: perf: store sysfs device entry into context
  i965: perf: reuse timescale base function from query
  i965: perf: count number of accumlated reports
  i965: perf: consolidate unmapping oa perf bo outside accumulation
  i965: perf: extract utility functions
  i965: perf: snapshot RPSTAT1 register
  i965: perf: read slice/unslice frequencies from OA reports
  i965: perf: add support for raw queries
  i965: perf: enable GPA query statistics

 src/mesa/drivers/dri/i965/Makefile.sources         |   3 +
 src/mesa/drivers/dri/i965/brw_context.h            |   6 +-
 src/mesa/drivers/dri/i965/brw_defines.h            |  10 +
 src/mesa/drivers/dri/i965/brw_oa.py                |   2 +-
 src/mesa/drivers/dri/i965/brw_performance_query.c  | 683 +++++++++++----------
 src/mesa/drivers/dri/i965/brw_performance_query.h  | 203 +++++-
 .../drivers/dri/i965/brw_performance_query_mdapi.c | 435 +++++++++++++
 .../drivers/dri/i965/brw_performance_query_mdapi.h |  39 ++
 .../dri/i965/brw_performance_query_metrics.h       |  57 ++
 src/mesa/drivers/dri/i965/meson.build              |   3 +
 10 files changed, 1080 insertions(+), 361 deletions(-)
 create mode 100644 src/mesa/drivers/dri/i965/brw_performance_query_mdapi.c
 create mode 100644 src/mesa/drivers/dri/i965/brw_performance_query_mdapi.h
 create mode 100644 src/mesa/drivers/dri/i965/brw_performance_query_metrics.h

--
2.16.2


More information about the mesa-dev mailing list