[Mesa-dev] [PATCH 0/6] Implement INTEL_performance_query

Petri Latvala petri.latvala at intel.com
Wed Mar 12 05:54:35 PDT 2014


This patch series implements the INTEL_performance_query extension.
With driver code for AMD_performance_monitor already in place,
implementing this extension was fairly straightforward.

Planned future improvements: Proper semantic types for counters and
data normalization (currently all counters are exposed as "RAW"
without per-second maximum). Pseudo-counters for things like "time
spent in shader compilation" or "forced recompilation event count".

Piglit tests for this extension have been sent to piglit mailing
list. All tests pass.

Petri Latvala (6):
  mesa: Add GL_INTEL_performance_query definitions
  Regenerate gl_mangle.h.
  mesa: Add INTEL_performance_query enums to tests/enum_strings.cpp
  mesa: Add core support for the GL_INTEL_performance_query extension.
  mesa: Implement INTEL_performance_query.
  i965: Enable INTEL_performance_query for Gen5+.

 include/GL/gl.h                                |  45 ++
 include/GL/gl_mangle.h                         | 371 +++++++++++++++-
 src/mapi/glapi/gen/INTEL_performance_query.xml |  93 ++++
 src/mapi/glapi/gen/Makefile.am                 |   1 +
 src/mapi/glapi/gen/gl_API.xml                  |   2 +
 src/mesa/drivers/dri/i965/intel_extensions.c   |   4 +-
 src/mesa/main/config.h                         |   8 +
 src/mesa/main/extensions.c                     |   1 +
 src/mesa/main/get.c                            |   1 +
 src/mesa/main/get_hash_params.py               |   6 +
 src/mesa/main/mtypes.h                         |   1 +
 src/mesa/main/performance_monitor.c            | 585 +++++++++++++++++++++++++
 src/mesa/main/performance_monitor.h            |  43 +-
 src/mesa/main/tests/dispatch_sanity.cpp        |  12 +
 src/mesa/main/tests/enum_strings.cpp           |  18 +
 15 files changed, 1183 insertions(+), 8 deletions(-)
 create mode 100644 src/mapi/glapi/gen/INTEL_performance_query.xml

-- 
1.9.0



More information about the mesa-dev mailing list